Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. jsonpath
  4. ›
  5. CVE-2025-61140

CVE-2025-61140: JSONPath vulnerable to Prototype Pollution due to insufficient input validation of object keys in lib/index.js

January 28, 2026 (updated February 5, 2026)

The value function in jsonpath 1.1.1 lib/index.js is vulnerable to Prototype Pollution.

References

  • gist.github.com/Dremig/8105c189774217222a8ebea3ed4d341d
  • github.com/advisories/GHSA-6c59-mwgh-r2x6
  • github.com/dchester/jsonpath
  • github.com/dchester/jsonpath/commit/9631412641b7095f86840a7a45b5b3afc68b0fcb
  • github.com/dchester/jsonpath/issues/181
  • github.com/dchester/jsonpath/issues/194
  • github.com/dchester/jsonpath/pull/195
  • nvd.nist.gov/vuln/detail/CVE-2025-61140

Code Behaviors & Features

Detect and mitigate CVE-2025-61140 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 1.2.0

Fixed versions

  • 1.2.0

Solution

Upgrade to version 1.2.0 or above.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')

Source file

npm/jsonpath/CVE-2025-61140.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:53 +0000.