CVE-2021-21278 json
Risk of code injection in RSSHub
published 5y ago modified last mo. also GHSA-pgjj-866w-fc5c , EUVD-2021-2237
- cvss
- 8.6
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.6%
- EPSS 1.6% chance of exploitation in 30 days, percentile 76%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
Is CVE-2021-21278 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerExploit prediction
1.60% chance of exploitation in the next 30 days, higher than 76% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 8.6 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N |
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
| GitHub | 3.1 | 8.6 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | rsshub | <=1.0.0 |
no fix listed |
Affected products
- DIYgod RSSHub
Classification
- Weakness
-
- CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component
References
-
github.com
/DIYgod/RSSHub/commit/7f1c43094e8a82e4d8f036ff7d42568fed00699d
web, patch, third-party-advisory
-
github.com
/DIYgod/RSSHub/security/advisories/GHSA-pgjj-866w-fc5c
web, third-party-advisory
-
npmjs.com
/package/rsshub
web, product, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2021-21278
advisory
-
github.com
/DIYgod/RSSHub
package
Sources
- CVE List CVE-2021-21278
- GitHub Advisory GHSA-pgjj-866w-fc5c
- NVD CVE-2021-21278
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.