CVE-2026-61534confetti yayson
Prototype Pollution in Yayson
Critical 9.1 No auth needed
Follow: this CVE · confetti · confetti yayson We alert you by email or Slack (account required).
- Priority
- 70
- CVSS 3.1
- 9.1
- EPSS
- —
- Auth required
- No
- Published
- Sep 14, 2026
- Updated
- Sep 30, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-1321
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: yes · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
What happens
Yayson prior to 4.3.0 is vulnerable to prototype pollution through attacker-controlled JSON:API type, id, and relationship names. A document with type __proto__ allows modifying Object.prototype, causing denial of service, logic corruption, authorization bypass, or code execution depending on available gadgets in the consuming application.
Show the original NVD text
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.
What to do
Patch available · fixed versions: 4.3.0
Update Yayson to version 4.3.0 or later.
- Apply the vendor's security update for yayson.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | yayson |
< 4.3.0 |
4.3.0 |
npm install yayson@4.3.0 |
Per OSV / GitHub Advisories (GHSA-325j-mg25-8q58). Check the version in your lockfile before upgrading.
Affected products
- confetti · yayson
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official sources
References
Links published by the sources. Open them with care.