CVE-2017-15878 Cross-Site Scripting in keystone

Medium 6.1 Published Updated

An XSS vulnerability in KeystoneJS allows attackers to inject malicious scripts via the Contact Us feature, potentially leading to session hijacking or code execution.

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-15878?

CVE-2017-15878 is a medium-severity cross-site scripting vulnerability in n/a, published on 24 Oct 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

A cross-site scripting (XSS) vulnerability exists in fields/types/markdown/MarkdownType.js in KeystoneJS before 4.0.0-beta.7 via the Contact Us feature.

Weakness: CWE-79

Which versions are affected by CVE-2017-15878?

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

PackageAffectedFixed in
keystone npmAll versions4.0.0
keystone npmAll versions4.0.0

Products include Keystonejs Keystone.

How do I fix CVE-2017-15878?

Upgrade keystone to 4.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-2017-15878 being exploited?

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

Public exploit code: 1 Exploit-DB entry.

Sources

Also known as GHSA-7qcx-jmrc-h2rr.

Is CVE-2017-15878 in your software?

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

Check your SBOMs for free