CVE-2024-27926 RSSHub Cross-site Scripting vulnerability caused by internal media proxy
Attackers can execute arbitrary JavaScript via crafted images in the internal media proxy, affecting RSSHub users.
- 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-2024-27926?
CVE-2024-27926 is a medium-severity cross-site scripting vulnerability in DIYgod RSSHub, published on 6 Mar 2024. 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
RSSHub is an open source RSS feed generator. Starting in version 1.0.0-master.cbbd829 and prior to version 1.0.0-master.d8ca915, ahen the specially crafted image is supplied to the internal media proxy, it proxies the image without handling XSS vulnerabilities, allowing for the execution of arbitrary JavaScript code. Users who access the deliberately constructed URL are affected. This vulnerability was fixed in version 1.0.0-master.d8ca915. No known workarounds are available.
Weakness: CWE-79
Which versions are affected by CVE-2024-27926?
2 open source packages ship an affected version, including rsshub. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
rsshub npm | From 1.0.0-master.cbbd829 | 1.0.0-master.d8ca915 |
rsshub npm | From 1.0.0-master.cbbd829 | 1.0.0-master.d8ca915 |
Products include Rsshub Rsshub.
How do I fix CVE-2024-27926?
Upgrade rsshub to 1.0.0-master.d8ca915 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-2024-27926 being exploited?
There is no known exploitation of CVE-2024-27926 in the wild and no public exploit code.
Other vulnerabilities in DIYgod RSSHub
- CVE-2023-22493 RSSHub is vulnerable to SSRF (Server-Side Request Forgery)
- CVE-2021-21278 Risk of code injection in RSSHub
- CVE-2024-27927 RSSHub vulnerable to SSRF in /mastodon, /zjoi, and /m4
- CVE-2023-26491 RSSHub is vulnerable to cross-site scripting (XSS) via unvalidated URL parameters
- CVE-2022-31110 Denial of Service (DoS) vulnerability in RSSHub
Sources
Also known as GHSA-2wqw-hr4f-xrhh.