Vulnerability · Published Jan 26, 2021 · Assigned by GitHub_M
CVE-2021-21278Risk of code injection in RSSHub
High 8.6
In plain English
A high-severity injection in RSSHub from DIYgod. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.6% (higher than 76% of all known vulnerabilities).
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | rsshub | no fix listed | GHSA-pgjj-866w-fc5c |
Affected products (as reported)
Weakness: CWE-74 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N
References
- https://github.com/DIYgod/RSSHub/security/advisories/GHSA-pgjj-866w-fc5c x_refsource_CONFIRM
- https://github.com/DIYgod/RSSHub/commit/7f1c43094e8a82e4d8f036ff7d42568fed00699d x_refsource_MISC
- https://www.npmjs.com/package/rsshub x_refsource_MISC