Cross-site scripting in spin.js
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Active
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- None · None · None
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-79.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | spin.js | before 3.0.0 | 3.0.0 | Patch available | CNA |
- spin.js Vendor— Affected before 3.0.0 Fixed in 3.0.0 Patch available CNA
Remediation
- Fix · CNA spin.js Fixed in 3.0.0
Timeline
- 2026-10-02 Threatist record created from CVE-2026-3884
- 2026-10-03 Alias added: GHSA-h99f-r56h-cmrp
Sources
- CVE-2026-3884 · CVE Program
- CVE-2026-3884 · NVD
- FIRST EPSS
- GHSA-h99f-r56h-cmrp · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences