CVE-2017-16015 Cross-Site Scripting in forms

Medium 6.1 Published Updated

Attackers can inject malicious scripts via unsanitized form inputs in the Node.js forms library, potentially compromising user sessions.

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-2017-16015?

CVE-2017-16015 is a medium-severity cross-site scripting vulnerability in HackerOne forms node module, published on 4 Jun 2018. 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

Forms is a library for easily creating HTML forms. Versions before 1.3.0 did not have proper html escaping. This means that if the application did not sanitize html on behalf of forms, use of forms may be vulnerable to cross site scripting

Weakness: CWE-79, CWE-80

Which versions are affected by CVE-2017-16015?

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

PackageAffectedFixed in
forms npmAll versions1.3.0
forms npmAll versions1.3.0

Products include Forms Project Forms.

How do I fix CVE-2017-16015?

Upgrade forms to 1.3.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-2017-16015 being exploited?

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

Sources

Also known as GHSA-vwjj-2852-3765.

Is CVE-2017-16015 in your software?

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

Check your SBOMs for free