CVE-2021-21278: Risk of code injection in RSSHub
RSSHub is an open source, easy to use, and extensible RSS feed generator. In RSSHub before version 7f1c430 (non-semantic versioning) there is a risk of code injection. Some routes use eval or Function constructor, which may be injected by the target site with unsafe code, causing server-side security issues The fix in version 7f1c430 is to temporarily remove the problematic route and added a no-new-func rule to eslint.
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2021-21278?
CVE-2021-21278 is classified as a high severity vulnerability due to the risk of code injection.
How do I fix CVE-2021-21278?
To mitigate CVE-2021-21278, upgrade to the patched version of RSSHub released after the commit 7f1c430.
What causes CVE-2021-21278?
CVE-2021-21278 is caused by the use of eval or the Function constructor in RSSHub routes that allow for potential code injection.
Is my version of RSSHub affected by CVE-2021-21278?
Any version of RSSHub prior to the commit timestamp of 7f1c430 is vulnerable to CVE-2021-21278.
What types of attacks are possible due to CVE-2021-21278?
CVE-2021-21278 could allow an attacker to execute arbitrary code within the context of the application, leading to potential data breaches or system compromise.