Skip to main content
MalwarePublished Updated

pkg-with-optional (npm) · Malicious Code

Affects pkg-with-optionalSource GCVE Database

0

Malicious package : remove pkg-with-optional and rotate any secrets on hosts that installed it.

Data as of 4 Nov 2026, 17:16 UTC

Classification

Malicious package

Published to npm · OSV MAL-2025-49349

What to do

Remove pkg-with-optional from every project, lockfile and image that pulls it in. Treat any host that installed it as compromised: rotate the credentials, tokens and keys it could read, from a clean machine.

Affected software

ProductAffectedFixed in
npmpkg-with-optionalAffected
  • =1.0.0
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

Description

--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (0a7273cf1aeda44bb1d1c2b9e1336bae21d1e1c6606ec940757a218d7761a81b) The package pkg-with-optional was found to contain malicious code. ## Source: ossf-package-analysis (67529e27c76b444d9c357cc28d010a783ce87fab9eec7a8ca37590e01bcdf9bf) The OpenSSF Package Analysis project identified 'pkg-with-optional' @ 1.0.0 (npm) as malicious. It is considered malicious because: - The package communicates with a domain associated with malicious activity.

Community reviews

Loading reviews…