CVE-2018-17574 Cross-site Scripting in yapi-vendor
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.
| Package | Affected | Fixed in |
|---|---|---|
yapi-vendor npm | All versions | 1.3.23 |
yapi-vendor npm | All versions | 1.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.
Other vulnerabilities in n/a
Sources
Also known as GHSA-5xgh-643p-cp2g.