Skip to main content
Menu
CVEs

CNPM Core unauthenticated token disclosure in registry endpoints

Affects cnpmcore 3.46.0 to before 3.84.3 and 4.0.0 to before 4.37.3 in the default configuration (alwaysAuth false) when an upstream registry has an authToken. Fixed in 3.84.3 and 4.37.3.

CVE-2026-136181Published November 24, 2026, updated

8.7HighCNA
Exploited
No known exploitation
Fix
Fixed in 3.84.3, 4.37.3
Who is exposed
Default setups

Summary

cnpmcore, a package registry server, is affected. Remote attackers without logging in can request its /-/registry endpoints to obtain upstream registry authTokens, then reuse those tokens to enumerate, download, or publish packages on the upstream registry.

Written by a model

Original description

cnpmcore 3.46.0 before 3.84.3 and 4.0.0 before 4.37.3 contains an information disclosure vulnerability that allows unauthenticated attackers to obtain upstream registry authTokens via the GET /-/registry endpoints lacking AdminAccess middleware. Attackers can request /-/registry or /-/registry/:id and replay the leaked authToken as a Bearer credential to enumerate, download, or publish packages upstream.

Who should check

Teams running cnpmcore 3.46.0 to before 3.84.3 or 4.0.0 to before 4.37.3 with an upstream registry configured using an authToken.

Not fixed by: AlwaysAuth alone does not fix it; it is a no-op in the default config.

“>= 3.46.0, < 3.84.3”

github.com

What to do

  1. Check every install: default setups are affected.

  2. Upgrade to a fixed version: 3.84.3, 4.37.3.

Check your systems with an agent

Paste this into a coding or ops agent. It checks your systems read-only and reports a table per asset.

Check whether my systems are affected by CVE-2026-136181 (cnpmcore 3.46.0 before 3.84.3 and 4.0.0 before 4.37.3 Registry authToken Disclosure), using the cve.now data below.

Rules: work read-only. Do not run exploit code, proof-of-concept scripts or scanners that send attack payloads, and do not change any configuration, package, image or deployment. Report findings only.

What cve.now has for CVE-2026-136181 (entry last updated 2026-11-24):
Affected:
- npm package cnpmcore: from 3.46.0, fixed in 3.84.3; from 4.0.0, fixed in 4.37.3
Fixed versions: 3.84.3, 4.37.3.
Conditions (all must be true for the bug to be hit):
- Affected cnpmcore versions: >= 3.46.0 and < 3.84.3, or >= 4.0.0 and < 4.37.3. (source: https://github.com/cnpm/cnpmcore/security/advisories/GHSA-9rww-324g-xwph)
- Default configuration, with alwaysAuth set to false. (source: https://github.com/cnpm/cnpmcore/security/advisories/GHSA-9rww-324g-xwph)
- An admin has configured an upstream registry with an authToken. (source: https://github.com/cnpm/cnpmcore/security/advisories/GHSA-9rww-324g-xwph)
Setup: the bug is reachable in a default setup; no special feature or setting is needed.
Attacker needs: network access, no login, no user action.
CISA KEV: CVE-2026-136181 is not listed as of cve.now's last read.
This KEV status is for CVE-2026-136181 only. If you also check another CVE, look up its own KEV status; never assume it from this one.

How to check:
- Packages (npm): find every lockfile in each project and run the stack.check operation of the cve.now MCP server (execute) on each one. Compare the resolved versions, not the ranges a manifest declares, with the affected versions above. Include transitive dependencies.

Verify against the linked advisories before concluding, and cite the date you read each one:
- https://github.com/cnpm/cnpmcore/security/advisories/GHSA-9rww-324g-xwph
- https://github.com/cnpm/cnpmcore/commit/0bf0052597985100480522b1a59815b85c09b29e
- https://github.com/cnpm/cnpmcore/commit/1309cb2cd619de7351467e2b4ba2a02b5647930a
- https://github.com/cnpm/cnpmcore/releases/tag/v4.37.3
- https://github.com/cnpm/cnpmcore/releases/tag/v3.84.3
- https://github.com/cnpm/cnpmcore/blob/v4.37.2/app/port/controller/RegistryController.ts#L34-L58
- https://github.com/cnpm/cnpmcore/blob/v3.84.2/app/port/controller/RegistryController.ts#L28-L46
- https://www.vulncheck.com/advisories/cnpmcore-3.46.0-before-3.84.3-and-4.0.0-before-4.37.3-registry-authtoken-disclosure
Do not conclude an asset is unaffected unless you checked it and the evidence covers both its version and the conditions above. If you could not check something, mark it unknown and say what is missing.

Report a table with one row per asset and these columns: Asset | Version or build | Status (affected, fixed, not applicable, unknown) | Compensating controls | Exposure (internet-facing, internal, none) | Evidence | Next action.

Entry: https://cve.now/CVE-2026-136181
For follow-up questions, use the cve.now MCP server at https://mcp.cve.now/mcp (no authentication), for example execute with name cve.get and arguments {"id": "CVE-2026-136181"}.

Affected versions

cve.now Index

41Pof 100 · provisional · methodology v3
  • Exploitation?/40Unknown. No CISA SSVC exploitation rating yet
  • Exposure22/25Default setups, reachable over the network without a login
  • Reach10/20Affects npm packages
  • Severity8.7/10CVSS 8.7
  • No patch0/5No signal

What would change the score

  • Would score about 81 if added to CISA KEV
  • Would score about 76 if CISA's SSVC rates exploitation active

Timeline

  1. CVE published
  2. First seen by cve.now

Evidence 10

Questions about CVE-2026-136181

Is CVE-2026-136181 being exploited?

It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.

Source: cve.now feed data

What does this mean?

Unauthenticated attackers can obtain upstream registry authTokens and replay them to enumerate, download, or publish packages upstream.

Source: github.com, vulncheck.com

Which versions are affected by CVE-2026-136181?

cnpmcore (npm): from 3.46.0 before 3.84.3; from 4.0.0 before 4.37.3.

Source: cve.now feed data

Am I affected, and how do I check?

Versions from 3.46.0 up to but not including 3.84.3, and from 4.0.0 up to but not including 4.37.3. The exposure also depends on the default configuration with alwaysAuth set to false and an admin having configured an upstream registry with an authToken. Check the installed cnpmcore version, the alwaysAuth setting, and whether an upstream registry is configured with a token.

Source: github.com, vulncheck.com

How do I fix CVE-2026-136181?

Upgrade to cnpmcore 3.84.3 or later on the 3.x line, or to 4.37.3 or later on the 4.x line.

Source: github.com, vulncheck.com

No corrections so far. Something wrong on this page? Report an error.