CVE-2014-9772 XSS Filter Bypass via Encoded URL in validator

Medium 6.1 Published Updated

Remote attackers can bypass the XSS filter in the Node.js validator library by using hex-encoded characters, potentially allowing script injection.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2014-9772?

CVE-2014-9772 is a medium-severity cross-site scripting vulnerability in Nodejs Node.js, published on 23 Jan 2017. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

The validator package before 2.0.0 for Node.js allows remote attackers to bypass the cross-site scripting (XSS) filter via hex-encoded characters.

Weakness: CWE-79

Which versions are affected by CVE-2014-9772?

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

PackageAffectedFixed in
validator npmAll versions2.0.0
validator npmAll versions2.0.0

Products include Nodejs Node.js.

How do I fix CVE-2014-9772?

Upgrade validator to 2.0.0 or later.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2014-9772 being exploited?

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

All Nodejs Node.js vulnerabilities

Sources

Also known as GHSA-79mx-88w7-8f7q.

Is CVE-2014-9772 in your software?

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

Check your SBOMs for free