CVE-2018-19289 Valine HTML Injection
Attackers can execute arbitrary JavaScript via HTML injection in Valine comments, 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-2018-19289?
CVE-2018-19289 is a medium-severity cross-site scripting vulnerability in n/a, published on 15 Nov 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 issue was discovered in Valine v1.3.3. It allows HTML injection, which can be exploited for JavaScript execution via an EMBED element in conjunction with a .pdf file.
Weakness: CWE-79
Which versions are affected by CVE-2018-19289?
2 open source packages ship an affected version, including valine. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
valine npm | All versions | 1.3.4 |
valine npm | All versions | 1.3.4 |
Products include Valine.js Valine.
How do I fix CVE-2018-19289?
Upgrade valine to 1.3.4 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-19289 being exploited?
There is no known exploitation of CVE-2018-19289 in the wild and no public exploit code.
Other vulnerabilities in n/a
Sources
Also known as GHSA-hhrp-qm88-xjr3.