Yayson: Prototype pollution in the Store/LegacyStore deserialization
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- None · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub.
Summary
Yayson is a library for serializing and reading JSON API data in JavaScript. Prior to 4.3.0, Store and LegacyStore use attacker-controlled JSON:API type, id, and relationship names as keys in plain-object lookup tables in src/yayson/store.ts and src/yayson/legacy-store.ts. A document whose type is __proto__ causes model-cache writes to modify Object.prototype, with the attacker controlling the polluted property name through id and its value through attributes. The malicious type can also be supplied by an included resource, and LegacyStore is reachable when a configured types mapping resolves to __proto__. Unsafe relationship names including __proto__, constructor, and prototype provide additional document-derived member paths. The resulting process-wide prototype pollution can cause denial of service and logic corruption; authorization bypass or code execution depends on suitable gadgets in the consuming application. This issue is fixed in version 4.3.0.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| confetti | yayson | before 4.3.0 | 4.3.0 | Patch available | CNA |
| — | yayson (npm) | before 4.3.0 | 4.3.0 | Patch available | GHSA-325j-mg25-8q58 |
- yayson Vendorconfetti Affected before 4.3.0 Fixed in 4.3.0 Patch available CNA
- yayson (npm) Vendor— Affected before 4.3.0 Fixed in 4.3.0 Patch available GHSA-325j-mg25-8q58
Remediation
- Fix · CNA yayson (confetti) Fixed in 4.3.0
- Fix · GHSA-325j-mg25-8q58 yayson (npm) Fixed in 4.3.0 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-61534
- 2026-10-03 Alias added: GHSA-325j-mg25-8q58
References
Sources
- CVE-2026-61534 · CVE Program
- CVE-2026-61534 · NVD
- FIRST EPSS
- GHSA-325j-mg25-8q58 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences