# GHSA-J2X3-5G59-P27J: Malicious code in pflag14570 (npm)

- Database: GitHub
- Malicious package: yes
- Published: 2026-09-21
- Modified: 2026-09-21

## Affected versions

- pflag14570 (npm): 1.0.0

## Description

## Source: amazon-inspector (2b7164c1405ab2587c562b3b9eb8cdad8258aab8f25b829da64c83d7185eab6c)
index.js is an IIFE that executes at module load, reads document.cookie, fetches a list of authenticated application paths (/profile, /admin, /api/me, /settings, and similar), extracts a flag-shaped substring from the responses, and POSTs the aggregated JSON to the hardcoded collector https://webhook.site/42c6d937-77c7-42a5-8678-ef06b4501e38. The package metadata is a stub with no legitimate documented function; the shipped body is a browser-context session-cookie stealer and endpoint scraper directed at a third-party attacker-controlled collector.

---

Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/af486be301974b4c4068b1c7baa77731f37fa05e/osv/malicious/npm/pflag14570/MAL-2026-16341.json))

## References

- https://github.com/ossf/malicious-packages/blob/af486be301974b4c4068b1c7baa77731f37fa05e/osv/malicious/npm/pflag14570/MAL-2026-16341.json
- https://www.npmjs.com/package/pflag14570/v/1.0.0
- https://github.com/advisories/GHSA-j2x3-5g59-p27j

Page: https://cve.now/GHSA-J2X3-5G59-P27J

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
