Craft CMS is a content management system (CMS). Versions 5.7.0 and above, prior to 5.9.21 contain a mass-assignment flaw in the bulk-duplicate element action. An attacker who is only able to duplicate their own entires can submit an arbitrary id through the newAttributes request parameter. The duplication routine overrides its own id = null reset with that value and writes the attacker's attributes into the victim's existing entry row. ElementsController::beforeAction() pulls the request body into $this->_attributes and rejects requests that ship an id or canonicalId key at the top level, actionBulkDuplicate(), reads a separate newAttributes array and passes it straight through to the service layer. Elements::duplicateElement() clones the source element, sets id to null, and then hands the attacker's array to Craft::configure(), which overwrites the reset id with any numeric value inside $newAttributes. PHP Yii's saveElement() then performs an UPDATE against the row with that primary key instead of an INSERT. The attackers's title, slug, authorId, postDate, and UID land on the victim's entry. safeAttributes() on Entry includes id because the base element model exposes it, so the Collection::only() filter does not strip it. This issue has been fixed in version 5.9.21.
CVE-2026-50281
This high-severity CVE scores 7.1 under a secondary CVSS source (NVD's own analysis pending). EPSS exploit probability: 0.3%, top 83% of all CVEs by exploit prediction. GitHub Security Advisory data not yet ingested — confidence will rise once GHSA publishes (typical lag: hours to days for open-source ecosystem CVEs; never for infrastructure-only CVEs).
- High severity, but no confirmed exploitation yet
No vendor fix yet — apply a workaround or compensating control (WAF / firewall / segmentation) and watch for a patch.
- CVSS v3
- 7.1
- EG Score
- 7.1(medium)
- EPSS
- 16.6%
- KEV
- Not listed
Published
July 2, 2026
Last Modified
July 2, 2026
Advisory Details (2)
Auto-updated Jul 2, 2026Mass assignment via id in newAttributes during bulk duplicate overwrites existing elements · Advisory · craftcms/cms · GitHub
https://github.com/craftcms/cms/security/advisories/GHSA-x5m4-g2cq-52pqcommit 8f6587c25050 (craftcms/cms)
Patch available: craftcms/cms 5.9.21 (contains commit 8f6587c25050)
https://github.com/craftcms/cms/commit/8f6587c25050bbb6e080d59c71f6bb8932fc8600Vendor Advisories for CVE-2026-50281(1)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Data Freshness Timeline
(refreshed 15× in last 7d / 15× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
- 2026-07-07 02:41 UTCEG score recompute
- 2026-07-06 16:27 UTCEPSS rescore
- 2026-07-06 14:07 UTCEG score recompute
- 2026-07-06 02:23 UTCEPSS rescore
- 2026-07-06 01:32 UTCEG score recompute
- 2026-07-05 12:58 UTCEG score recompute
- 2026-07-05 02:30 UTCEPSS rescore
- 2026-07-05 00:25 UTCEG score recompute
- 2026-07-04 11:50 UTCEG score recompute
- 2026-07-04 06:31 UTCEPSS rescore
- 2026-07-03 23:16 UTCEG score recompute
- 2026-07-03 10:43 UTCEG score recompute
- 2026-07-02 22:07 UTCEG score recompute▲ 7.10
- 2026-07-02 22:05 UTCNVD updateCVSS v3 → 7.1 · CVSS v4 → 7.1
- 2026-07-02 20:07 UTCEG score recompute
Frequently asked(5)
What is CVE-2026-50281?
When was CVE-2026-50281 disclosed?
Is CVE-2026-50281 actively exploited?
What is the CVSS score of CVE-2026-50281?
How do I remediate CVE-2026-50281?
Dependency Blast Radius
Explore the affected products and dependency analysis for CVE-2026-50281
Is Your Infrastructure Affected by CVE-2026-50281?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.