CVE-2021-21278
CRITICAL 9.8CVSS 3.1Risk of code injection
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.
- Published
- 26 Jan 2021
- Last modified
- 13 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-74
- Also known as
- GHSA-pgjj-866w-fc5c
- Sources
- NVDJSONOSV GHSA-pgjj-866w-fc5cJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 8.6 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 8.6 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | HIGH 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | rsshub | rsshubcpe:2.3:a:rsshub:rsshub:*:*:*:*:*:node.js:*:* |
< 2021-01-25 | 2021-01-25 |
| OSV | npm | rsshub | <= 1.0.0 |
References
- https://github.com/DIYgod/RSSHub/commit/7f1c43094e8a82e4d8f036ff7d42568fed00699d · Patch, Third Party Advisory, WEB
- https://github.com/DIYgod/RSSHub/security/advisories/GHSA-pgjj-866w-fc5c · 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
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 26 Jan 2021)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 12 Oct 2021)