Skip to content

CVE-2025-61140: Prevent prototype pollution in JSON path handling#195

Merged
dchester merged 1 commit intodchester:masterfrom
ssudame2:CVE-2025-61140
Feb 4, 2026
Merged

CVE-2025-61140: Prevent prototype pollution in JSON path handling#195
dchester merged 1 commit intodchester:masterfrom
ssudame2:CVE-2025-61140

Conversation

@ssudame2
Copy link
Contributor

@ssudame2 ssudame2 commented Feb 1, 2026

Summary:

  • Block unsafe keys (proto, constructor, prototype) during path parsing and before writes.
  • Enforce safe keys across value(), apply(), _vivify(), and nodes() to prevent prototype pollution.

Testing:

  • npm test (includes new security suite in test/security.js)

**Summary**:

- Block unsafe keys (__proto__, constructor, prototype) during path parsing and before writes.
- Enforce safe keys across value(), apply(), _vivify(), and nodes() to prevent prototype pollution.

**Testing**:

- npm test (includes new security suite in test/security.js)
@ssudame2 ssudame2 mentioned this pull request Feb 1, 2026
@ssudame2
Copy link
Contributor Author

ssudame2 commented Feb 1, 2026

#194

@ssudame2
Copy link
Contributor Author

ssudame2 commented Feb 4, 2026

Any feedback on this @dchester? If it's good to be merged, this Critical Vulnerability can be resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants