Preliminary notice: published right away from the original source data, without editorial write-up. It will shortly be replaced by a written and reviewed version.
Summary
CVE-2026-136181: high-severity vulnerability (CVSS 8.7) in cnpm cnpmcore.
What happened
Original description from the source: 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.
Why it matters
High severity, CVSS 8.7.
Affected products and versions
cnpm cnpmcore >= 3.46.0, < 3.84.3; cnpm cnpmcore >= 4.0.0, < 4.37.3
| Product | Versions | Fixed in |
|---|---|---|
| cnpm cnpmcore | >= 3.46.0, < 3.84.3 | — |
| cnpm cnpmcore | >= 4.0.0, < 4.37.3 | — |
Action recommended by the source
See the official references for the fix or mitigation.
Sources and references
- https://github.com/cnpm/cnpmcore/security/advisories/GHSA-9rww-324g-xwph — CVE Program
- https://github.com/cnpm/cnpmcore/commit/0bf0052597985100480522b1a59815b85c09b29e — CVE Program
- https://github.com/cnpm/cnpmcore/commit/1309cb2cd619de7351467e2b4ba2a02b5647930a — CVE Program
- https://github.com/cnpm/cnpmcore/releases/tag/v4.37.3 — CVE Program
- https://github.com/cnpm/cnpmcore/releases/tag/v3.84.3 — CVE Program
- https://github.com/cnpm/cnpmcore/blob/v4.37.2/app/port/controller/RegistryController.ts#L34-L58 — CVE Program
- https://github.com/cnpm/cnpmcore/blob/v3.84.2/app/port/controller/RegistryController.ts#L28-L46 — CVE Program
- https://www.vulncheck.com/advisories/cnpmcore-3.46.0-before-3.84.3-and-4.0.0-before-4.37.3-registry-authtoken-disclosure — CVE Program
Weaknesses (CWE): CWE-306
Relevant change history
Published
Preliminary advisory published.