Registry authToken disclosure in cnpmcore exposes upstream registries
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Security bypass
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-306.
Summary
cnpmcore from 3.46.0 before 3.84.3 and from 4.0.0 before 4.37.3 lets unauthenticated attackers obtain upstream registry authTokens. The GET /-/registry endpoints lack the AdminAccess middleware, so requests to them return stored tokens. An attacker can replay a leaked token as a Bearer credential to enumerate, download, or publish packages on the upstream registry.
Written with Claude Haiku 5.5 from the sources below · 2026-11-28
Description from the CNA
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 now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
Upgrade cnpmcore to version 3.84.3 or 4.37.3, which fix the issue.
Written with Claude Haiku 5.5 from the sources below · 2026-11-28
- Fix · CNA cnpmcore (cnpm) Fixed in 3.84.3, 4.37.3
Timeline
- 2026-11-24 Threatist record created from CVE-2026-136181
- 2026-11-24 Alias added: GHSA-6hv3-qjpv-3pj6
- 2026-11-28 EPSS moved to the 50th–90th percentile
- 2026-11-28 CISA SSVC decision points changed
References
Patch 2
Sources
- CVE-2026-136181 · CVE Program
- CVE-2026-136181 · NVD
- FIRST EPSS
- GHSA-6hv3-qjpv-3pj6 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences