CVE-2026-3884: spin.js · Cross-site Scripting (XSS)
Affects spin.jsSource CVE Database V5
Public exploit available · CVSS 5.1 Medium : upgrade to 3.0.0 as a priority.
Data as of 30 Oct 2026, 06:59 UTC
- EPSS
- 0.1% chance of exploitation in 30 days – higher than 5% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 3.0.0
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:PExploitation evidence
Disclosed: evidence found.
CVE published 11 Mar 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: evidence found.
CVSS exploit maturity: proof of concept public
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), CVSS vector, the Metasploit, Exploit-DB and nuclei-templates index as of 29 Oct 2026.
What to do
Upgrade spin.js to 3.0.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| spin.js | Affected
| Fixed in
|
npmspin.jspkg:npm/spin.jsOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
To mitigate CVE-2026-3884, organizations should upgrade spin.js to version 3.0.0 or later where the vulnerability is fixed. If immediate upgrade is not feasible, implement strict input validation and sanitization on all user-supplied data, especially URL parameters that could influence Object.prototype. Employ Content Security Policy (CSP) headers to restrict the execution of unauthorized scripts and reduce the impact of potential XSS attacks. Disable or limit the use of alert dialogs in production environments to reduce the attack surface. Conduct thorough code reviews and security testing focusing on prototype pollution vectors in JavaScript code. Monitor web application logs for unusual activity or repeated alert triggers that may indicate exploitation attempts. Educate users about the risks of clicking on suspicious links to reduce successful social engineering. Finally, maintain an incident response plan to quickly address any detected exploitation.
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.