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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | spin.js | < 3.0.0 | 3.0.0 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | libjs-spin.js | No fix yet | — |
| Debian 13 | libjs-spin.js | No fix yet | — |
| Debian 12 | libjs-spin.js | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | libjs-spin.js | No fix yet | — |
| Ubuntu 26.04 LTS | libjs-spin.js | No fix yet | — |
| Ubuntu 25.10 | libjs-spin.js | No fix yet | — |
| Ubuntu 24.04 LTS | libjs-spin.js | No fix yet | — |
| Ubuntu 22.04 LTS | libjs-spin.js | No fix yet | — |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | libjs-spin.js | No fix yet | — |
| Ubuntu 18.04 LTS | libjs-spin.js | No fix yet | — |
| Ubuntu 16.04 LTS | libjs-spin.js | No fix yet | — |