CVE-2018-17574 Cross-site Scripting in yapi-vendor

Medium 5.4 Published Updated

Attackers can inject malicious scripts into project names, potentially stealing user sessions or executing code in YApi.

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

What is CVE-2018-17574?

CVE-2018-17574 is a medium-severity cross-site scripting vulnerability in n/a, published on 28 Sep 2018. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

An issue was discovered in YMFE YApi 1.3.23. There is stored XSS in the name field of a project.

Weakness: CWE-79

Which versions are affected by CVE-2018-17574?

2 open source packages ship an affected version, including yapi-vendor. It affects 1 product.

PackageAffectedFixed in
yapi-vendor npmAll versions1.3.23
yapi-vendor npmAll versions1.3.23

Products include Ymfe Yapi.

How do I fix CVE-2018-17574?

Upgrade yapi-vendor to 1.3.23 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-17574 being exploited?

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

Sources

Also known as GHSA-5xgh-643p-cp2g.

Is CVE-2018-17574 in your software?

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

Check your SBOMs for free