CVE-2022-38545 Valine code injection vulnerability
Attackers can execute arbitrary code via crafted POST requests in the Valine comment system, requiring an upgrade to mitigate.
- 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-2022-38545?
CVE-2022-38545 is a critical cross-site scripting vulnerability in n/a, published on 19 Sep 2022. 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
Valine v1.4.18 was discovered to contain a remote code execution (RCE) vulnerability which allows attackers to execute arbitrary code via a crafted POST request.
Weakness: CWE-79
Which versions are affected by CVE-2022-38545?
2 open source packages ship an affected version, including valine. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
valine npm | All versions | 1.5.0 |
valine npm | All versions | 1.5.0 |
Products include Valine.js Valine.
How do I fix CVE-2022-38545?
Upgrade valine to 1.5.0 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-2022-38545 being exploited?
There is no known exploitation of CVE-2022-38545 in the wild and no public exploit code.
Other vulnerabilities in n/a
Sources
Also known as GHSA-mcvg-g9wx-v5vx.