CVE-2026-136181: cnpmcore 3.46.0 before 3.84.3 and 4.0.0 before 4.37.3 Registry authToken Disclosure
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.
Affected Software
Event History
Frequently Asked Questions
Who can exploit this issue?
Any unauthenticated network client able to reach the cnpmcore GET /-/registry endpoints can request the affected data. No credentials or user interaction are required.
What can an attacker do with a disclosed token?
The leaked upstream registry authToken can be replayed as a Bearer credential. Depending on the token's upstream permissions, it can be used to enumerate, download, or publish packages.
Which versions need remediation?
The affected ranges are cnpmcore 3.46.0 through versions before 3.84.3, and 4.0.0 through versions before 4.37.3. Upgrade to 3.84.3 or later in the 3.x line, or 4.37.3 or later in the 4.x line.
How can I check whether tokens may already have been exposed?
Review access logs for requests to GET /-/registry and GET /-/registry/:id from untrusted sources. If those endpoints were reachable on an affected version, treat the associated upstream registry authTokens as potentially disclosed and review their upstream use.
What should be done if immediate patching is not possible?
Restrict access to the GET /-/registry endpoints to trusted administrative users or networks, since the missing AdminAccess middleware permits unauthenticated retrieval. Rotate exposed upstream registry authTokens and limit their upstream permissions where possible.