CVE-2023-26491 RSSHub is vulnerable to cross-site scripting (XSS) via unvalidated URL parameters

Medium 5.4 Published Updated

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.

PackageAffectedFixed in
rsshub npmAll versions1.0.0-master.c910c4d
rsshub npmAll versions1.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.

Sources

Also known as GHSA-32gr-4cq6-5w5q.

Is CVE-2023-26491 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free