Affected versions
npmstage-js
- Affected versions
- <= 0.8.10
- Fixed version
- Not reported
Exploitation
Description
Stage.js through 0.8.10 allows DOM Clobbering (with resultant XSS for untrusted input that contains HTML but does not directly contain JavaScript), because document.currentScript lookup can be shadowed by attacker-injected HTML elements.
Links
- https://gist.github.com/jackfromeast/31d56f1ad17673aabb6ab541e65a5534
- https://github.com/advisories/GHSA-fp3m-g5rc-4c28
- https://github.com/piqnt/stage.js
- https://github.com/piqnt/stage.js/blob/919f6e94b14242f6e6994141a9e1188439d306d5/lib/core.js#L158-L159
- https://nvd.nist.gov/vuln/detail/CVE-2024-53386

