Quick answers
- Is CVE-2020-28847 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2020-28847 being exploited in the wild.
- How severe is CVE-2020-28847?
- Low severity, with a CVSS score of 3.1, published 6 April 2022.
- Which products and versions are affected?
- valine (npm) SEMVER:introduced=0,fixed=1.4.15.
- Is there a fix for CVE-2020-28847?
- Yes. valine (npm): upgrade to 1.4.15 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2020-28847 attacked?
- It is attacked over the network, in a software library.
- Am I affected by CVE-2020-28847?
- Check whether you run valine (npm) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
How to fix
- valine (npm): upgrade to 1.4.15 or later
npm install valine@1.4.15
Technical details
The vulnerability is a stored cross-site scripting (XSS) flaw in Valine versions prior to 1.4.15, caused by insufficient input validation on the nick parameter when submitting comments via the /classes/Comment endpoint. An unauthenticated attacker can inject arbitrary HTML and JavaScript into a comment's nick field by sending a specially crafted POST request; the malicious payload is stored on the server and executed in the browsers of all users who subsequently view the page containing that comment. The attack requires the attacker to be able to submit comments (possibly controlled by the comment platform's configuration), but does not require user interaction beyond the victim viewing the comment. A fix is available in version 1.4.15 and later.
Affected products
- xCss Valine before 1.4.15
Identifiers
- CVE-2020-28847
- GHSA-6xvq-2gj8-4276
Timeline
- 2020-11-11: disclosed: Vulnerability reported via GitHub issue #348
- 2022-04-06: patched: Advisory published; fix released in version 1.4.15
- 2022-04-06: advisory: GHSA-6xvq-2gj8-4276 published