CVE-2025-1302 JSONPath Plus allows Remote Code Execution

Critical 9.3 Published Updated

An attacker can execute arbitrary code on systems using the jsonpath-plus library due to improper input sanitization in safe mode.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2025-1302?

CVE-2025-1302 is a critical code injection vulnerability in jsonpath-plus, published on 15 Feb 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Versions of the package jsonpath-plus before 10.3.0 are vulnerable to Remote Code Execution (RCE) due to improper input sanitization. An attacker can execute aribitrary code on the system by exploiting the unsafe default usage of eval='safe' mode. **Note:** This is caused by an incomplete fix for [CVE-2024-21534](https://security.snyk.io/vuln/SNYK-JS-JSONPATHPLUS-7945884).

Weakness: CWE-94

Which versions are affected by CVE-2025-1302?

2 open source packages ship an affected version, including jsonpath-plus.

PackageAffectedFixed in
jsonpath-plus npmAll versions10.3.0
jsonpath-plus npmAll versions10.3.0

How do I fix CVE-2025-1302?

Upgrade jsonpath-plus to 10.3.0 or later.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2025-1302 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-1302 exists.

Public exploit code: 1 Nuclei template and 2 proofs of concept on GitHub.

Sources

Also known as CLSA-2026-1774657371, GHSA-hw8r-x6gr-5gjp, MINI-qf95-q77j-xf3m, ROOT-APP-NPM-CVE-2025-1302.

Is CVE-2025-1302 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free