MEDIUM
GHSA-6c59-mwgh-r2x6
JSONPath vulnerable to Prototype Pollution due to insufficient input validation of object keys in lib/index.js
Quick fix
GHSA-6c59-mwgh-r2x6 — jsonpath: upgrade to the fixed version with the command below.
npm install jsonpath@1.2.0Details
The value function in jsonpath 1.1.1 lib/index.js is vulnerable to Prototype Pollution.
Are you affected?
Enter the version of the package you're using.
Affected packages
References
- https://nvd.nist.gov/vuln/detail/CVE-2025-61140[ADVISORY]
- https://github.com/dchester/jsonpath/issues/181[WEB]
- https://github.com/dchester/jsonpath/issues/194[WEB]
- https://github.com/dchester/jsonpath/pull/195[WEB]
- https://github.com/dchester/jsonpath/commit/9631412641b7095f86840a7a45b5b3afc68b0fcb[WEB]
- https://gist.github.com/Dremig/8105c189774217222a8ebea3ed4d341d[WEB]
- https://github.com/dchester/jsonpath[PACKAGE]