CVE-2018-20302 Cross-site Scripting in xain

Medium 6.1 Published Updated

Cross-site scripting vulnerability in Xain library allows attackers to inject malicious scripts via the order parameter.

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-2018-20302?

CVE-2018-20302 is a medium-severity cross-site scripting vulnerability in n/a, published on 20 Dec 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

An XSS issue was discovered in Steve Pallen Xain before 0.6.2 via the order parameter.

Weakness: CWE-79

Which versions are affected by CVE-2018-20302?

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

PackageAffectedFixed in
xain HexAll versions0.6.2
xain HexAll versions0.6.2

Products include Emetrotel Xain.

How do I fix CVE-2018-20302?

Upgrade xain to 0.6.2 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-2018-20302 being exploited?

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

Sources

Also known as GHSA-5chx-gg25-v37m.

Is CVE-2018-20302 in your software?

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

Check your SBOMs for free