CVE-2026-106448 StableLib: Prototype poisoning via `__proto__` map keys in CBOR decoding
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
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.
Upgrade path
2 packages: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| StableLib @stablelib/cbor(npm) | < 2.0.3 | 2.0.3 | Fixed |
| stablelib | = < 2.0.4 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| stablelib | = < 2.0.4 | No fix listed |
| StableLib @stablelib/cbor(npm) | < 2.0.3 | 2.0.3 |
References
- https://github.com/StableLib/stablelib/security/advisories/GHSA-w48f-fwg7-ww6p
- https://github.com/StableLib/stablelib/commit/0f153a63b7552a0e8721f640984113e419015026
- https://github.com/StableLib/stablelib/releases/tag/@stablelib/cbor@2.0.4
- github.com product
- ENISA EUVD EUVD-2026-93973 third-party-advisory