# CVE-2021-21278: Risk of code injection in RSSHub

- Severity: High 8.6 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.60%, higher than 76% of CVEs (2026-12-01)
- Published: 2021-01-26T20:25:15.000Z
- Modified: 2026-09-13T11:56:31.857Z
- Also known as: GHSA-pgjj-866w-fc5c
- Weaknesses: CWE-74
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- DIYgod RSSHub: < 7f1c430
- rsshub (npm): up to 1.0.0
- rsshub rsshub: before 2021-01-25

## Every score

- GitHub_M: CVSS:3.1 8.6 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N`
- GitHub: CVSS:3.1 8.6 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`

## 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

- CVE List: [CVE-2021-21278](https://www.cve.org/CVERecord?id=CVE-2021-21278), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-pgjj-866w-fc5c](https://github.com/advisories/GHSA-pgjj-866w-fc5c), CC-BY-4.0, modified 2026-09-13
- NVD: [CVE-2021-21278](https://nvd.nist.gov/vuln/detail/CVE-2021-21278), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-21278 · Whole record: https://cve.day/CVE-2021-21278.json · Rebuilt by cve.day 2026-11-25T22:57:59.735Z
