CVE-2021-21278
JSON

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 packageVersionsReported by
DIYgod RSSHub< 7f1c430CVE List
rsshub (npm)up to 1.0.0GitHub Advisory Database
rsshub rsshubbefore 2021-01-25NVD

All scores

GitHub_M8.6high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N
GitHub8.6high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N
NVD9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD7.5high CVSS:2.0AV: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:

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

Sources

SourceRecordLicence
CVE ListCVE-2021-21278 changed 2024-08-03CVE Terms of Use
GitHub Advisory DatabaseGHSA-pgjj-866w-fc5c changed 2026-09-13CC-BY-4.0
NVDCVE-2021-21278 changed 2026-06-17Public domain