Malicious Package Affecting cors.js package, versions *


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Mature

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-CORSJS-3157941
  • published6 Dec 2022
  • disclosed6 Dec 2022
  • creditTamir Ben Ari, Tom Abai

Introduced: 6 Dec 2022

Malicious CVE NOT AVAILABLE CWE-506  (opens in a new tab)

How to fix?

Avoid using all malicious instances of the cors.js package.

Overview

cors.js is a malicious package. This is a "dependency confusion" package, which means the package name is based on existing repositories, namespaces, or components. It aims to trick users into downloading the package which contains malicious code. The vulnerable code causes a reverse remote shell establishment on the victim environment.

References

CVSS Scores

version 3.1