Cross-site scripting via clobbered currentScript lookup
Published Sep 23, 2024 · Updated Oct 29, 2024
DOM clobbering in Rollup before 2.79.2, 3.29.5, or 4.22.4 allows remote attackers to execute JavaScript through crafted HTML. Generated CJS, UMD, and IIFE URL helpers trust document.currentScript.src without verifying a SCRIPT element, so a named IMG can redirect asset resolution. Exploitation requires a bundle using import.meta or emitted assets and a page permitting attacker-controlled name or id attributes; script executes in that page's origin.
Summary
What happened
DOM clobbering in Rollup before 2.79.2, 3.29.5, or 4.22.4 allows remote attackers to execute JavaScript through crafted HTML. Generated CJS, UMD, and IIFE URL helpers trust document.currentScript.src without verifying a SCRIPT element, so a named IMG can redirect asset resolution. Exploitation requires a bundle using import.meta or emitted assets and a page permitting attacker-controlled name or id attributes; script executes in that page's origin.
The record
- CVE
- CVE-2024-47068
- Published
- Sep 23, 2024
- Updated
- Oct 29, 2024
- Vendor
- Rollup
- Product
- Rollup
- Classifications
- CWE-79, T1189
- Attack vector
- network
- Privileges
- Unavailable
Timeline
How it unfolded
- Sep 23, 2024CVE publishedPublication date reported by the CVE source.
- Oct 29, 2024Record 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.29.5
- Affected versionversion=< 2.79.2
- Affected versionversion=>= 3.0.0, < 3.29.5
- Affected versionversion=>= 4.0.0, < 4.22.4
- Affected versionversion=4.0.0 <4.22.4
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
- Rollup DOM-clobbering proof of conceptproof 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