CVE-2026-3884 Details
Description
Versions of the package spin.js before 3.0.0 are vulnerable to Cross-site Scripting (XSS) via the spin() function that allows a creation of more than 1 alert for each 'target' element. An attacker would need to set an arbitrary key-value pair on Object.prototype through a crafted URL achieving a prototype pollution first, before being able to execute arbitrary JavaScript in the context of the user's browser.
A cross-site scripting (XSS) vulnerability has been identified in the spin.js package, affecting versions prior to 3.0.0. The issue arises in the spin() function, which can create multiple alert dialogs for each targeted element. This vulnerability requires an attacker to first exploit a prototype pollution flaw, such as CVE-2021-20089, to inject a malicious key-value pair into Object.prototype via a crafted URL. Once the prototype pollution is achieved, the attacker can execute arbitrary JavaScript in the context of the user's browser.
Upgrade spin.js to version 3.0.0 or higher.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Mar 11, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://gist.github.com/ericcornelissen/1a73e28fa50c3009b0eb51ad2fc19f25 | [email protected] | Broken Link |
| https://security.snyk.io/vuln/SNYK-JS-SPINJS-15445079 | [email protected] | Third Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| spin.js spin.js | < 3.0.0 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| May 7, 2026 | Initial Analysis | [email protected] |
| Mar 11, 2026 | New CVE Received | [email protected] |