CVE-2022-25849 Cross-site Scripting (XSS)
An attacker can inject malicious scripts via the href attribute in markdown parsing, potentially executing code in the victim's browser.
- 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
- None listed
What is CVE-2022-25849?
CVE-2022-25849 is a medium-severity cross-site scripting vulnerability in joyqi/hyper-down, published on 26 Oct 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
The package joyqi/hyper-down from 0.0.0 are vulnerable to Cross-site Scripting (XSS) because the module of parse markdown does not filter the href attribute very well.
Weakness: CWE-79
Which versions are affected by CVE-2022-25849?
2 open source packages ship an affected version, including joyqi/hyper-down. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
joyqi/hyper-down Packagist | All versions to 2.4.27 | None |
joyqi/hyper-down Packagist | All versions to 2.4.27 | None |
Products include Hyperdown Project Hyperdown.
How do I fix CVE-2022-25849?
No fix has been published for CVE-2022-25849 yet. Limit exposure of the affected software until one is available.
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-25849 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-25849 exists.
Sources
Also known as GHSA-4r9g-w48q-8jwm.