Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @stablelib/cbor
  4. ›
  5. GHSA-w48f-fwg7-ww6p

GHSA-w48f-fwg7-ww6p: @stablelib/cbor: Prototype poisoning via `__proto__` map keys in CBOR decoding

April 4, 2026 (updated April 7, 2026)

@stablelib/cbor decodes CBOR maps into ordinary JavaScript objects and assigns attacker-controlled keys directly onto those objects. A CBOR map key named __proto__ therefore changes the prototype of the decoded object instead of becoming an ordinary data property.

References

  • github.com/StableLib/stablelib
  • github.com/StableLib/stablelib/commit/0f153a63b7552a0e8721f640984113e419015026
  • github.com/StableLib/stablelib/security/advisories/GHSA-w48f-fwg7-ww6p
  • github.com/advisories/GHSA-w48f-fwg7-ww6p

Code Behaviors & Features

Detect and mitigate GHSA-w48f-fwg7-ww6p with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.0.3

Fixed versions

  • 2.0.3

Solution

Upgrade to version 2.0.3 or above.

Impact 8.6 HIGH

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

Learn more about CVSS

Weakness

  • CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')

Source file

npm/@stablelib/cbor/GHSA-w48f-fwg7-ww6p.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 09 May 2026 12:20:11 +0000.