Skip to main content
MalwarePublished

cors-update (npm) · Malicious Code

Affects cors-updateSource GCVE Database

0

Malicious package : remove cors-update and rotate any secrets on hosts that installed it.

Data as of 5 Aug 2026, 15:41 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-12174

What to do

Remove cors-update 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
npmcors-updateAffected
  • 1.0.0 – 2.8.4
5 affected builds
Fixed in–

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

Description

The npm package 'cors-update' impersonates the legitimate 'cors' Express middleware but contains malicious code that fetches and executes attacker-controlled JavaScript code from a hardcoded URL. This execution occurs with full access to Node.js require, enabling arbitrary code execution in the host application. The malicious code disguises its network request as a blockchain RPC call and disables TLS verification, increasing risk. Applications that install and invoke this package as a substitute for 'cors' are vulnerable to remote code execution.

References

Community reviews

Loading reviews…