MAL-2026-16338

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/pf23727/MAL-2026-16338.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-16338
Aliases
  • GHSA-p2hc-jmvm-qwc9
Published
2026-09-21T03:33:14Z
Modified
2026-10-01T04:45:54Z
Summary
Malicious code in pf23727 (npm)
Details

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

Source: amazon-inspector (f83e32460196d036eca65e46845ea4717a9d5e64a5c2360d657d1ae6c92dfe96)

index.js is the package main and runs as an IIFE on require()/import. It reads document.cookie, slices document.body.innerHTML, and issues fetch('/profile', {credentials: 'include'}) to capture an authenticated response, then transmits the concatenated data via navigator.sendBeacon/fetch to a hardcoded collector at https://webhook.site/c4e39647-bfb8-47ef-b6d4-a112aacc6cd1. The destination is an unrelated third-party request-inspection service used as an exfiltration sink; the package has no declared legitimate purpose consistent with reading cookies or authenticated profile content. Behavior is a session-cookie and credentialed-response exfiltration payload rather than a functional library.

Source: ghsa-malware (7b5508b450ed2def5348f6955f1ffd3cd20cda6e300d127d779e6d0c8606302d)

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-020246",
            "import_time":  "2026-09-21T03:46:39.490497277Z",
            "modified_time":  "2026-09-21T03:33:14Z",
            "sha256":  "f83e32460196d036eca65e46845ea4717a9d5e64a5c2360d657d1ae6c92dfe96",
            "source":  "amazon-inspector",
            "versions":  [
                "1.0.0"
            ]
        },
        {
            "id":  "GHSA-p2hc-jmvm-qwc9",
            "import_time":  "2026-10-01T04:32:29.800952287Z",
            "modified_time":  "2026-10-01T03:42:02Z",
            "ranges":  [
                {
                    "events":  [
                        {
                            "introduced":  "0"
                        }
                    ],
                    "type":  "SEMVER"
                }
            ],
            "sha256":  "7b5508b450ed2def5348f6955f1ffd3cd20cda6e300d127d779e6d0c8606302d",
            "source":  "ghsa-malware"
        }
    ]
}
References
Credits

Affected packages

npm / pf23727

Package

Affected ranges

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

Affected versions

1.*
1.0.0

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"
    }
]
indicators
{
    "evidence_files":  [
        {
            "path":  "index.js",
            "sha256":  "aa21df7aec3b68355d8379fe1307a1bcca75a9f1f700b1cefe474b6c3ea1a094",
            "tlsh":  "fae02be2b2ba10090711a1cd7067d495f5768041f883d698e2195f208a01066a9474da"
        }
    ],
    "package_integrity":  [
        {
            "filename":  "pf23727-1.0.0.tgz",
            "hashes":  {
                "sha1":  "443afd982961b3cf296840612ae62e080477dbaa",
                "sha512_sri":  "sha512-izkEZD+PH1THiEsywg9OzIFibsgmz9GDBLuZEdMmOjqbBg7FpDMjMETFodP4QOYaIJw3oH6sljVanVQTAUfhrQ=="
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/pf23727/MAL-2026-16338.json"