Vulnerability library
Security checkApril 07, 2026

@stablelib/cbor: Prototype poisoning via `__proto__` map keys in CBOR decoding

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

High severitynpm@stablelib/cbor

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

@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.

Recommendation

Update the @stablelib/cbor package to the latest compatible version. Followings are version details:

  • Affected version(s): < 2.0.3
  • Patched version(s): 2.0.3

References

Could your website be exposed too?

SmartScanner can check your website for @stablelib/cbor: Prototype poisoning via `__proto__` map keys in CBOR decoding and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated April 07, 2026