CVE-2021-21278 is a critical-severity (CVSS 9.8) CWE-74 vulnerability in rsshub. The records list no fixed version yet; check the vendor advisory below and apply the mitigations in the meantime.
Risk of code injection
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
How broadly this vulnerability is actually deployed: weekly install volume shows current usage, and reverse-dependency count shows how many other packages break if it stays unpatched.
rsshubnpmDescription
Impact
Some routes use eval or Function constructor, which may be injected by the target site with unsafe code, causing server-side security issues
Patches
Temporarily removed the problematic route and added a no-new-func rule to eslint
Self-built users should upgrade to 7f1c430 and later as soon as possible
Credits
Tencent Woodpecker Security Team
For more information
If you have any questions or comments about this advisory:
- Open an issue in https://github.com/DIYgod/RSSHub/issues
- Email us at [email protected]
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 📦npm | rsshub | all versions | No fix |
Affected Products
rsshubrsshubDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for rsshub, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Remediation status
The records we use list no patched version of rsshub for CVE-2021-21278. Check the maintainer's advisory, and where your build allows, override or pin the dependency away from the vulnerable range.
Mitigate without a patch
If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.
Frequently Asked Questions
Is CVE-2021-21278 in your dependencies?
Find it across npm, including transitive dependencies.