Skip to content
Heist/ feed
Back to feed
Medium

libjs-spin.js — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2026-3884

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.

Products
libjs-spin.js
Affected versions
1.2.8+dfsg2-1, 1.2.8+dfsg2-1.1, 1.2.8+dfsg2-2
Fixed versions
Not specified
CVEs
CVE-2026-3884
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 03:02 UTC · Revision 1

Source evidence

UBUNTU-CVE-2026-3884

core-osv · Original source

Published 11 Mar 2026, 06:17 UTC

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.

osv:UBUNTU-CVE-2026-3884

libjs-spin.js

Fixed versions: Not specified

libjs-spin.js

Fixed versions: Not specified

libjs-spin.js

Fixed versions: Not specified

libjs-spin.js

Fixed versions: Not specified

libjs-spin.js

Fixed versions: Not specified

libjs-spin.js

Fixed versions: Not specified

libjs-spin.js

Fixed versions: Not specified

libjs-spin.js

Fixed versions: Not specified

Complete source record
{
  "id": "9e5c5abff0894c2c0bcaf3ff11e9e577ee77bd3baf851cc282194c1bb051677c",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-3884",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2026-3884",
    "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.",
    "evidence": "osv:UBUNTU-CVE-2026-3884",
    "products": [
      {
        "name": {
          "value": "libjs-spin.js",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.2.8+dfsg2-1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "libjs-spin.js",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.2.8+dfsg2-1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "libjs-spin.js",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.2.8+dfsg2-1",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "libjs-spin.js",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.2.8+dfsg2-1.1",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "libjs-spin.js",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.2.8+dfsg2-1.1",
            "evidence": "/affected/4/versions"
          }
        ]
      },
      {
        "name": {
          "value": "libjs-spin.js",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.2.8+dfsg2-1.1",
            "evidence": "/affected/5/versions"
          }
        ]
      },
      {
        "name": {
          "value": "libjs-spin.js",
          "evidence": "/affected/6/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.2.8+dfsg2-2",
            "evidence": "/affected/6/versions"
          }
        ]
      },
      {
        "name": {
          "value": "libjs-spin.js",
          "evidence": "/affected/7/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.2.8+dfsg2-1.1",
            "evidence": "/affected/7/versions"
          },
          {
            "value": "1.2.8+dfsg2-2",
            "evidence": "/affected/7/versions"
          }
        ]
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "UBUNTU-CVE-2026-3884",
      "aliases": [
        "UBUNTU-CVE-2026-3884"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
        },
        {
          "type": "CVSS_V4",
          "score": "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:P"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "libjs-spin.js",
            "purl": "pkg:deb/ubuntu/libjs-spin.js?arch=source&distro=xenial",
            "ecosystem": "Ubuntu:16.04:LTS"
          },
          "versions": [
            "1.2.8+dfsg2-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-3884.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libjs-spin.js",
                "binary_version": "1.2.8+dfsg2-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "libjs-spin.js",
            "purl": "pkg:deb/ubuntu/libjs-spin.js?arch=source&distro=bionic",
            "ecosystem": "Ubuntu:18.04:LTS"
          },
          "versions": [
            "1.2.8+dfsg2-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-3884.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libjs-spin.js",
                "binary_version": "1.2.8+dfsg2-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "libjs-spin.js",
            "purl": "pkg:deb/ubuntu/libjs-spin.js?arch=source&distro=focal",
            "ecosystem": "Ubuntu:20.04:LTS"
          },
          "versions": [
            "1.2.8+dfsg2-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-3884.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libjs-spin.js",
                "binary_version": "1.2.8+dfsg2-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "libjs-spin.js",
            "purl": "pkg:deb/ubuntu/libjs-spin.js?arch=source&distro=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "versions": [
            "1.2.8+dfsg2-1.1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-3884.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libjs-spin.js",
                "binary_version": "1.2.8+dfsg2-1.1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "libjs-spin.js",
            "purl": "pkg:deb/ubuntu/libjs-spin.js?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "1.2.8+dfsg2-1.1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-3884.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libjs-spin.js",
                "binary_version": "1.2.8+dfsg2-1.1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "libjs-spin.js",
            "purl": "pkg:deb/ubuntu/libjs-spin.js?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "1.2.8+dfsg2-1.1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-3884.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libjs-spin.js",
                "binary_version": "1.2.8+dfsg2-1.1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "libjs-spin.js",
            "purl": "pkg:deb/ubuntu/libjs-spin.js?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "1.2.8+dfsg2-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-3884.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libjs-spin.js",
                "binary_version": "1.2.8+dfsg2-2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "libjs-spin.js",
            "purl": "pkg:deb/ubuntu/libjs-spin.js?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "1.2.8+dfsg2-1.1",
            "1.2.8+dfsg2-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-3884.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libjs-spin.js",
                "binary_version": "1.2.8+dfsg2-2"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T13:00:03.070492341Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-3884"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2026-3884",
        "https://www.cve.org/CVERecord?id=CVE-2026-3884",
        "https://gist.github.com/ericcornelissen/1a73e28fa50c3009b0eb51ad2fc19f25",
        "https://security.snyk.io/vuln/SNYK-JS-SPINJS-15445079"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-3884",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 360196,
  "published_at": "2026-03-11T06:17:00+00:00"
}