{"id":"CVE-2021-21278","aliases":["CVE-2021-21278","GHSA-pgjj-866w-fc5c"],"related":[],"kind":"vulnerability","state":"published","title":"Risk of code injection in RSSHub","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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\nSome routes use `eval` or `Function constructor`, which may be injected by the target site with unsafe code, causing server-side security issues\n\n### Patches\nTemporarily removed the problematic route and added a `no-new-func` rule to eslint\nSelf-built users should upgrade to 7f1c430 and later as soon as possible\n\n### Credits\nTencent Woodpecker Security Team\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [https://github.com/DIYgod/RSSHub/issues](https://github.com/DIYgod/RSSHub/issues)\n* Email us at [i@diygod.me](mailto:i@diygod.me)","format":"markdown","source":"ghsa"},{"lang":"es","text":"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","source":"nvd"}],"published":"2021-01-26T20:25:15.000Z","modified":"2026-09-13T11:56:31.857Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N","score":8.6,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N","score":8.6,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N","score":8.6,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","score":7.5,"rating":"HIGH"}],"cwes":["CWE-74"],"affected":[{"ranges":[{"version":"< 7f1c430","status":"affected"}],"vendor":"DIYgod","product":"RSSHub","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","lastAffected":"1.0.0"}],"ecosystem":"npm","package":"rsshub","purl":"pkg:npm/rsshub","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"2021-01-25"}],"vendor":"rsshub","product":"rsshub","cpe":"cpe:2.3:a:rsshub:rsshub:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/DIYgod/RSSHub/security/advisories/GHSA-pgjj-866w-fc5c","tags":["third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/DIYgod/RSSHub/commit/7f1c43094e8a82e4d8f036ff7d42568fed00699d","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.npmjs.com/package/rsshub","tags":["product","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-21278","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/DIYgod/RSSHub","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-21278","url":"https://www.cve.org/CVERecord?id=CVE-2021-21278","licence":"CVE Terms of Use","modified":"2024-08-03T18:09:15.121Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-pgjj-866w-fc5c","url":"https://github.com/advisories/GHSA-pgjj-866w-fc5c","licence":"CC-BY-4.0","modified":"2026-09-13T11:56:31.857Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-21278","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-21278","licence":"Public domain","modified":"2026-06-17T03:35:10.850Z"}],"updatedAt":"2026-11-25T22:57:59.735Z","epss":{"score":0.01604,"percentile":0.76566,"date":"2026-12-01T12:00:22.000Z"}}