Description
StableLib is a stable library of useful TypeScript and JavaScript code. Prior to 2.0.4, the @stablelib/cbor CBOR map decoding path creates ordinary JavaScript objects and assigns attacker-controlled keys with bracket assignment. A map key named __proto__ invokes the inherited prototype setter instead of creating an ordinary own property, allowing the decoded object's prototype to contain attacker-controlled authorization or feature-flag values. Downstream code that trusts normal property lookup or merges the decoded object can therefore make security-sensitive decisions using inherited attacker data. This issue is fixed in version 2.0.4.
Severity (CVSS)
| Base score | 8.9 |
|---|---|
| Severity | High |
| Version | CVSS 4.0 |
| Vector | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:H/SA:N |
| Provided by | CNA |
Weaknesses
- CWE-1321 — CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')
Affected products
| Vendor | Product | Versions |
|---|---|---|
| StableLib | stablelib | < 2.0.4 |
References
- https://github.com/StableLib/stablelib/security/advisories/GHSA-w48f-fwg7-ww6p (x_refsource_CONFIRM)
- https://github.com/StableLib/stablelib/commit/0f153a63b7552a0e8721f640984113e419015026 (x_refsource_MISC)
- https://github.com/StableLib/stablelib/releases/tag/@stablelib/cbor@2.0.4 (x_refsource_MISC)
Generated from the official CVE List on 07 Oct 2026 10:16 UTC.