{"id":"CVE-2021-21278","state":"PUBLISHED","title":"Risk of code injection in RSSHub","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.","publishedAt":"2021-01-26T20:25:15.000Z","updatedAt":"2024-08-03T18:09:15.121Z","severity":{"score":8.6,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N","source":"GitHub_M"},"assigner":"GitHub_M","products":["DIYgod RSSHub"],"affected":[{"vendor":"DIYgod","product":"RSSHub","versions":[{"version":"< 7f1c430","status":"affected"}]}],"references":["https://github.com/DIYgod/RSSHub/security/advisories/GHSA-pgjj-866w-fc5c","https://github.com/DIYgod/RSSHub/commit/7f1c43094e8a82e4d8f036ff7d42568fed00699d","https://www.npmjs.com/package/rsshub"],"weaknesses":["CWE-74"],"ingestedAt":"2026-10-29T19:47:59.168Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2021/21xxx/CVE-2021-21278.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2021-21278","state":"PUBLISHED","datePublished":"2021-01-26T20:25:15.000Z","dateUpdated":"2024-08-03T18:09:15.121Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2020-12-22T00:00:00.000Z"},"containers":{"cna":{"title":"Risk of code injection in RSSHub","descriptions":[{"lang":"en","value":"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":[{"vendor":"DIYgod","product":"RSSHub","versions":[{"version":"< 7f1c430","status":"affected"}]}],"references":[{"url":"https://github.com/DIYgod/RSSHub/security/advisories/GHSA-pgjj-866w-fc5c","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/DIYgod/RSSHub/commit/7f1c43094e8a82e4d8f036ff7d42568fed00699d","tags":["x_refsource_MISC"]},{"url":"https://www.npmjs.com/package/rsshub","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":8.6,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"CHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-74","description":"CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","dateUpdated":"2021-01-26T20:25:15.000Z","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa"},"source":{"advisory":"GHSA-pgjj-866w-fc5c","discovery":"UNKNOWN"},"x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"security-advisories@github.com","ID":"CVE-2021-21278","STATE":"PUBLIC","TITLE":"Risk of code injection in RSSHub"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"RSSHub","version":{"version_data":[{"version_value":"< 7f1c430"}]}}]},"vendor_name":"DIYgod"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"impact":{"cvss":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":8.6,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"CHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')"}]}]},"references":{"reference_data":[{"name":"https://github.com/DIYgod/RSSHub/security/advisories/GHSA-pgjj-866w-fc5c","refsource":"CONFIRM","url":"https://github.com/DIYgod/RSSHub/security/advisories/GHSA-pgjj-866w-fc5c"},{"name":"https://github.com/DIYgod/RSSHub/commit/7f1c43094e8a82e4d8f036ff7d42568fed00699d","refsource":"MISC","url":"https://github.com/DIYgod/RSSHub/commit/7f1c43094e8a82e4d8f036ff7d42568fed00699d"},{"name":"https://www.npmjs.com/package/rsshub","refsource":"MISC","url":"https://www.npmjs.com/package/rsshub"}]},"source":{"advisory":"GHSA-pgjj-866w-fc5c","discovery":"UNKNOWN"}}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://github.com/DIYgod/RSSHub/security/advisories/GHSA-pgjj-866w-fc5c","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://github.com/DIYgod/RSSHub/commit/7f1c43094e8a82e4d8f036ff7d42568fed00699d","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://www.npmjs.com/package/rsshub","tags":["x_refsource_MISC","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-03T18:09:15.121Z"}}]}}}