Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. jsonpath-plus
  4. ›
  5. CVE-2024-21534

CVE-2024-21534: JSONPath Plus Remote Code Execution (RCE) Vulnerability

October 11, 2024 (updated February 6, 2025)

Versions of the package jsonpath-plus before 10.0.7 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 vm in Node.

Note:

There were several attempts to fix it in versions 10.0.0-10.1.0 but it could still be exploited using different payloads

References

  • github.com/JSONPath-Plus/JSONPath
  • github.com/JSONPath-Plus/JSONPath/commit/6b2f1b4c234292c75912b790bf7e2d7339d4ccd3
  • github.com/JSONPath-Plus/JSONPath/commit/73ad72e5ee788d8287dea6e8283a3f16f63c9eb8
  • github.com/JSONPath-Plus/JSONPath/commit/b70aa713553caf838a63bac923195a5bc541fd72
  • github.com/JSONPath-Plus/JSONPath/compare/v9.0.0...v10.1.0
  • github.com/JSONPath-Plus/JSONPath/issues/226
  • github.com/JSONPath-Plus/JSONPath/issues/226
  • github.com/JSONPath-Plus/JSONPath/pull/233
  • github.com/advisories/GHSA-pppg-cpfq-h7wr
  • nvd.nist.gov/vuln/detail/CVE-2024-21534
  • security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-8185019
  • security.snyk.io/vuln/SNYK-JS-JSONPATHPLUS-7945884

Code Behaviors & Features

Detect and mitigate CVE-2024-21534 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 10.2.0

Fixed versions

  • 10.2.0

Solution

Upgrade to version 10.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-94: Improper Control of Generation of Code ('Code Injection')

Source file

npm/jsonpath-plus/CVE-2024-21534.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Wed, 14 May 2025 12:15:43 +0000.