Stored CSS injection via unsanitized display parameters
Published Apr 7, 2026 · Updated Apr 7, 2026
CSS injection in Wikimedia Foundation MediaWiki Cargo before 3.8.7 allows remote authenticated users to alter rendered page styles. The calendar, BPMN, Gantt, and timeline formatters place size parameters into inline style attributes without restricting them to CSS dimensions. An attacker needs permission to save Cargo query wikitext, and a reader must load the affected page; injected styles can alter content or trigger browser requests to attacker-controlled URLs.
Summary
What happened
CSS injection in Wikimedia Foundation MediaWiki Cargo before 3.8.7 allows remote authenticated users to alter rendered page styles. The calendar, BPMN, Gantt, and timeline formatters place size parameters into inline style attributes without restricting them to CSS dimensions. An attacker needs permission to save Cargo query wikitext, and a reader must load the affected page; injected styles can alter content or trigger browser requests to attacker-controlled URLs.
The record
- CVE
- CVE-2026-39840
- Published
- Apr 7, 2026
- Updated
- Apr 7, 2026
- Vendor
- Wikimedia Foundation
- Product
- MediaWiki Cargo
- Classifications
- CWE-79
- Attack vector
- network
- Privileges
- authenticated
Timeline
How it unfolded
- Apr 7, 2026CVE publishedPublication date reported by the CVE source.
- Apr 7, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=0 <3.8.7
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- Wikimedia Cargo calendar CSS injection reproductionproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo