CVE-2023-26491 RSSHub is vulnerable to cross-site scripting (XSS) via unvalidated URL parameters
Attackers can execute arbitrary JavaScript in victims' browsers via malicious URL parameters in RSSHub, requiring an upgrade to fix.
- 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-2023-26491?
CVE-2023-26491 is a medium-severity cross-site scripting vulnerability in DIYgod RSSHub, published on 3 Mar 2023. 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 and extensible RSS feed generator. When the URL parameters contain certain special characters, it returns an error page that does not properly handle 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 c910c4d28717fb860fbe064736641f379fab2c91. Please upgrade to this or a later version, there are no known workarounds.
Weakness: CWE-79
Which versions are affected by CVE-2023-26491?
2 open source packages ship an affected version, including rsshub. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
rsshub npm | All versions | 1.0.0-master.c910c4d |
rsshub npm | All versions | 1.0.0-master.c910c4d |
Products include Rsshub Rsshub.
How do I fix CVE-2023-26491?
Upgrade rsshub to 1.0.0-master.c910c4d 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-2023-26491 being exploited?
There is no known exploitation of CVE-2023-26491 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-2024-27926 RSSHub Cross-site Scripting vulnerability caused by internal media proxy
- CVE-2022-31110 Denial of Service (DoS) vulnerability in RSSHub
Sources
Also known as GHSA-32gr-4cq6-5w5q.