MAL-2026-16309

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/npmscript_tesstalert_unpkg/MAL-2026-16309.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-16309
Aliases
  • GHSA-xvj9-j5xj-9f5p
Published
2026-09-21T03:06:40Z
Modified
2026-10-12T13:45:04Z
Summary
Malicious code in npmscript_tesstalert_unpkg (npm)
Details

-= Per source details. Do not edit below this line.=-

Source: amazon-inspector (8c84336bfcd8d43d3f97942ded74e5a049c05e024f5a4b79dbee66acff1e1627)

The package ships a single script exposed via the unpkg field for CDN loading into web pages. When executed in a browser, the script reads document.cookie and assigns window.location.href to https://webhook.site/4c14c8e4-721e-471d-807c-1a2aa216512a/ concatenated with the cookie value, causing the browser to navigate to that attacker-controlled endpoint carrying the victim's cookies. The identifiers location, href, and cookie are assembled from split fragments ("loca"+"tion", "hr"+"ef", "coo"+"kie") to hide the sensitive property accesses from string-based scanners. Any page that loads this file via unpkg or bundles it exfiltrates its cookies to the hardcoded webhook.site collector.

Source: ghsa-malware (efdb5fd9b7105d7d7bad5ef86b67ee09c7b8d936866298e6dab1da36329d1641)

Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.

Database specific
{
    "malicious-packages-origins":  [
        {
            "id":  "IN-MAL-2026-020199",
            "import_time":  "2026-09-21T03:24:20.718482369Z",
            "modified_time":  "2026-09-21T03:06:40Z",
            "sha256":  "5fa1adfe349e0a6092589e90bf38184b5769148bf42b4216fc714ad446ea747b",
            "source":  "amazon-inspector",
            "versions":  [
                "1.0.2"
            ]
        },
        {
            "id":  "IN-MAL-2026-020203",
            "import_time":  "2026-09-21T03:24:21.037355069Z",
            "modified_time":  "2026-09-21T03:07:34Z",
            "sha256":  "c777bbe58b3d69665fe68a18fced15bddf5b2af8c9fc19daac7fc5b886188330",
            "source":  "amazon-inspector",
            "versions":  [
                "1.0.1"
            ]
        },
        {
            "id":  "IN-MAL-2026-020278",
            "import_time":  "2026-09-21T21:37:44.996447323Z",
            "modified_time":  "2026-09-21T21:29:07Z",
            "sha256":  "3768ce94b4529af0a60d4781cbb2dd69230e7781efb440e0a9c4fc5dcc7121da",
            "source":  "amazon-inspector",
            "versions":  [
                "1.1.8"
            ]
        },
        {
            "id":  "IN-MAL-2026-020279",
            "import_time":  "2026-09-21T21:37:45.051365256Z",
            "modified_time":  "2026-09-21T21:31:19Z",
            "sha256":  "8c84336bfcd8d43d3f97942ded74e5a049c05e024f5a4b79dbee66acff1e1627",
            "source":  "amazon-inspector",
            "versions":  [
                "1.1.7"
            ]
        },
        {
            "id":  "GHSA-xvj9-j5xj-9f5p",
            "import_time":  "2026-10-12T12:55:43.317434986Z",
            "modified_time":  "2026-10-12T12:22:43Z",
            "ranges":  [
                {
                    "events":  [
                        {
                            "introduced":  "0"
                        }
                    ],
                    "type":  "SEMVER"
                }
            ],
            "sha256":  "efdb5fd9b7105d7d7bad5ef86b67ee09c7b8d936866298e6dab1da36329d1641",
            "source":  "ghsa-malware"
        }
    ]
}
References
Credits

Affected packages

npm / npmscript_tesstalert_unpkg

Package

Name
npmscript_tesstalert_unpkg
View open source insights on deps.dev
Purl
pkg:npm/npmscript_tesstalert_unpkg

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Affected versions

1.*
1.0.1
1.0.2
1.1.7
1.1.8

Database specific

cwes
[
    {
        "cweId":  "CWE-506",
        "description":  "The product contains code that appears to be malicious in nature.",
        "name":  "Embedded Malicious Code"
    },
    {
        "cweId":  "CWE-506",
        "description":  "The product contains code that appears to be malicious in nature.",
        "name":  "Embedded Malicious Code"
    },
    {
        "cweId":  "CWE-506",
        "description":  "The product contains code that appears to be malicious in nature.",
        "name":  "Embedded Malicious Code"
    },
    {
        "cweId":  "CWE-506",
        "description":  "The product contains code that appears to be malicious in nature.",
        "name":  "Embedded Malicious Code"
    },
    {
        "cweId":  "CWE-506",
        "description":  "The product contains code that appears to be malicious in nature.",
        "name":  "Embedded Malicious Code"
    }
]
indicators
{
    "evidence_files":  [
        {
            "path":  "script.js",
            "sha256":  "d07a8bca18ee7732f852fc4ec9ecd86150bc178a14f464afe844c11e792a196c",
            "tlsh":  "ecc08cbf30258daa4a50c04922e8b60aa224420dd853d50b9a881b211f0c91818642e7"
        }
    ],
    "package_integrity":  [
        {
            "filename":  "npmscript_tesstalert_unpkg-1.0.2.tgz",
            "hashes":  {
                "sha1":  "eb109a686b36c9f5688eca0903ec119802fcebdc",
                "sha512_sri":  "sha512-7l3ngY3IlZ0v+cJoOGnHb+IQaD1zqUJWp/8TEWCYTBf8UfthO+iA36RGfpKgcfgF9B5bFAh4rbXtAf4P0MdYDQ=="
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/npmscript_tesstalert_unpkg/MAL-2026-16309.json"