Quick answers
- Is CVE-2024-27927 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2024-27927 being exploited in the wild.
- How severe is CVE-2024-27927?
- Low severity, with a CVSS score of 3.1, published 6 March 2024.
- Which products and versions are affected?
- rsshub (npm) SEMVER:introduced=0,fixed=1.0.0-master.a429472.
- Is there a fix for CVE-2024-27927?
- Yes. rsshub (npm): upgrade to 1.0.0-master.a429472 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2024-27927 attacked?
- It is attacked over the network, in a software library.
- Am I affected by CVE-2024-27927?
- Check whether you run rsshub (npm) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
How to fix
- rsshub (npm): upgrade to 1.0.0-master.a429472 or later
npm install rsshub@1.0.0-master.a429472
Technical details
Multiple Server-Side Request Forgery (SSRF) vulnerabilities exist in RSSHub's /mastodon, /zjol, and /m4 routes due to insufficient validation of user-supplied parameters used in constructing outbound HTTP GET requests. Specifically, parameters like ':acct' in Mastodon routes and ':id' in Zjol/M4 routes are used to build target URLs without adequate sanitization, allowing an attacker to inject arbitrary hostnames. A remote, unauthenticated attacker can exploit this to scan internal network ports, leak the server's real IP address (bypassing CDNs), or perform DoS amplification by chaining requests or requesting large files. The vulnerability is addressed in version 1.0.0-master.a429472 by implementing host validation.
Affected products
- DIYgod RSSHub < 1.0.0-master.a429472
Identifiers
- CVE-2024-27927
- GHSA-3p3p-cgj7-vgw3
Timeline
- 2024-03-05: advisory: Original GitHub Security Advisory published by vendor.
- 2024-03-06: disclosed: Public disclosure of the vulnerability.
- 2024-03-21: patched: NVD publication and patch confirmation.
References
- https://github.com/DIYgod/RSSHub/security/advisories/GHSA-3p3p-cgj7-vgw3
- https://github.com/DIYgod/RSSHub/commit/a42947231104a9ec3436fc52cedb31740c9a7069
- https://github.com/DIYgod/RSSHub
- https://github.com/DIYgod/RSSHub/blob/172f6cfd2b69ea6affdbdedf61e6dde1671f3796/lib/routes/m4/index.js
- https://github.com/DIYgod/RSSHub/blob/172f6cfd2b69ea6affdbdedf61e6dde1671f3796/lib/routes/zjol/paper.js
- https://github.com/DIYgod/RSSHub/blob/5928c5db2472e101c2f5c3bafed77a2f72edd40a/lib/routes/mastodon/acct.js