GHSA-rrqv-vjrw-hrcr Arbitrary Code Execution in json-ptr

Not scored Published

Attackers can execute arbitrary code by sending unsanitized input to the json-ptr library's get method, requiring developers to upgrade the package.

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

What is GHSA-rrqv-vjrw-hrcr?

GHSA-rrqv-vjrw-hrcr is a code injection vulnerability in json-ptr, published on 26 May 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

There is a security vulnerability in json-ptr versions prior to v2.1.0 in which an unscrupulous actor may execute arbitrary code. If your code sends un-sanitized user input to json-ptr's .get() method, your project is vulnerable to this injection-style vulnerability.

Which versions are affected by GHSA-rrqv-vjrw-hrcr?

2 open source packages ship an affected version, including json-ptr.

PackageAffectedFixed in
json-ptr npmAll versions2.1.0
json-ptr npmAll versions2.1.0

How do I fix GHSA-rrqv-vjrw-hrcr?

Upgrade json-ptr to 2.1.0 or later.

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

Is GHSA-rrqv-vjrw-hrcr being exploited?

There is no known exploitation of GHSA-rrqv-vjrw-hrcr in the wild and no public exploit code.

Sources

Is GHSA-rrqv-vjrw-hrcr in your software?

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

Check your SBOMs for free