CVE-2019-19507 Validation bypass is possible in Json Pattern Validator

Medium 5.3 Published Updated

Attackers can bypass type validation in the jpv library by overwriting internal attributes, allowing crafted payloads to evade security checks.

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

What is CVE-2019-19507?

CVE-2019-19507 is a medium-severity vulnerability in n/a, published on 2 Dec 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

In jpv (aka Json Pattern Validator) before 2.1.1, compareCommon() can be bypassed because certain internal attributes can be overwritten via a conflicting name, as demonstrated by 'constructor': {'name':'Array'}. This affects validate(). Hence, a crafted payload can overwrite this builtin attribute to manipulate the type detection result.

Weakness: CWE-287

Which versions are affected by CVE-2019-19507?

2 open source packages ship an affected version, including jpv. It affects 1 product.

PackageAffectedFixed in
jpv npmAll versions2.1.1
jpv npmAll versions2.1.1

Products include Json Pattern Validator Project Json Pattern Validator.

How do I fix CVE-2019-19507?

Upgrade jpv to 2.1.1 or later.

Is CVE-2019-19507 being exploited?

There is no known exploitation of CVE-2019-19507 in the wild and no public exploit code.

Sources

Also known as GHSA-rh46-3fgc-mvrf.

Is CVE-2019-19507 in your software?

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

Check your SBOMs for free