8.6high
Risk of code injection in RSSHub
- Severity
- 8.6high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 1.60% (higher than 76% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-pgjj-866w-fc5c
Description
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
| Product or package | Versions | Reported by |
|---|---|---|
| DIYgod RSSHub | < 7f1c430 | CVE List |
| rsshub (npm) | up to 1.0.0 | GitHub Advisory Database |
| rsshub rsshub | before 2021-01-25 | NVD |
All scores
| GitHub_M | 8.6high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N |
| GitHub | 8.6high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N |
| NVD | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 7.5high CVSS:2.0 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Classification
What each source says
CVE List
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.
GitHub Advisory Database
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 i@diygod.me
NVD (es)
RSSHub es un generador de fuentes RSS extensible, fácil de usar y de código abierto. En RSSHub versiones anteriores a 7f1c430 (versionado no semántico) se presenta el riesgo de inyección de código. Algunas rutas usan "eval" o "Function constructor", que pueden ser inyectadas por el sitio objetivo con código no seguro, causando problemas de seguridad en el lado del servidor. La corrección en la versión 7f1c430 es eliminar temporalmente la ruta problemática y agregar una regla "no-new-func" para eslint
References
| https://github.com/DIYgod/RSSHub/security/advisories/GHSA-pgjj-866w-fc5c | third-party-advisory, web | |
| https://github.com/DIYgod/RSSHub/commit/7f1c43094e8a82e4d8f036ff7d42568fed00699d | patch, third-party-advisory, web | |
| https://www.npmjs.com/package/rsshub | product, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-21278 | advisory | |
| https://github.com/DIYgod/RSSHub | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-21278 changed 2024-08-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-pgjj-866w-fc5c changed 2026-09-13 | CC-BY-4.0 |
| NVD | CVE-2021-21278 changed 2026-06-17 | Public domain |