npm package report

Is @babel/core safe?

1 known vulnerability, worst severity LOW.

// reach

26 direct dependencies

7 carry known advisories, worst CRITICAL

436 packages depend on it

an advisory here reaches each of them

Create a free accountfor every dependency path, dependent and what to upgrade
// ai model usage

Tracked for PyPI packages. HuggingFace models declare Python dependencies, so npm packages are not covered.


cvss
3.2
low

CVSS v3.1 base score out of 10

epss
0.15%
low

chance of exploitation in 30 days, 4th percentile of all CVEs

xyz score
3.2
low

CyberXYZ composite out of 10

fig. 01 — GHSA-4x5r-pxfx-6jf8, the advisory selected below

// 1 advisories

GHSA-4x5r-pxfx-6jf8

LOWGitHub ratingCVE-2026-49356
// impact

Using @babel/core to compile maliciously crafted code can allow ab attacker to read any source map from the system that is running Babel, if these conditions are all true:

  • the attacker controls the input source code
  • the attacker can read the output source code
  • the attacker knows the path of the source map file that they want to read

Users that only compile trusted code are not impacted.

// patches

The vulnerability has been fixed in @babel/core@7.29.6 and @babel/core@8.0.0-rc.6.

// workarounds

Callers can mitigate the issue without upgrading by setting inputSourceMap: false in their Babel options.

Callers can also manually extract the #sourceMappingURL comment from the input source code, validate whether the source map that it links to is allowed to be read, and if it is pass an object to inputSourceMap (passing false when it's not).

// credits

Thanks Teodor-Cristian Radoi for reporting the vulnerability.

// cvss v3.1 vector

CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:N

Attack vector
Local
Attack complexity
High
Privileges required
None
User interaction
None
Scope
Changed
Confidentiality
Low
Integrity
None
Availability
None

Checked 2026-11-06 at 21:31 UTC. The most recent advisory here was published 2026-06-15. Updated continuously from NVD, GHSA, OSV and CNA feeds.

Think a verdict here is wrong? Tell us — we respond within 2 business days.