Improper input validation in DIYgod RSSHub
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA.
Summary
RSSHub is an RSS network. Prior to commit 64e00e7, RSSHub's `docker-test-cont.yml` workflow is vulnerable to Artifact Poisoning, which could have lead to a full repository takeover. Downstream users of RSSHub are not vulnerable to this issue, and commit 64e00e7 fixed the underlying issue and made the repository no longer vulnerable. The `docker-test-cont.yml` workflow gets triggered when the `PR - Docker build test` workflow completes successfully. It then collects some information about the Pull Request that triggered the triggering workflow and set some labels depending on the PR body and sender. If the PR also contains a `routes` markdown block, it will set the `TEST_CONTINUE` environment variable to `true`. The workflow then downloads and extracts an artifact uploaded by the triggering workflow which is expected to contain a single `rsshub.tar.zst` file. However, prior to commit 64e00e7, it did not validate and the contents were extracted in the root of the workspace overriding any existing files. Since the contents of the artifact were not validated, it is possible for a malicious actor to send a Pull Request which uploads, not just the `rsshub.tar.zst` compressed docker image, but also a malicious `package.json` file with a script to run arbitrary code in the context of the privileged workflow. As of commit 64e00e7, this scenario has been addressed and the RSSHub repository is no longer vulnerable.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| DIYgod | RSSHub | before 64e00e7 | 64e00e7 | Patch available | CNA |
- RSSHub VendorDIYgod Affected before 64e00e7 Fixed in 64e00e7 Patch available CNA
CPE names CISA-ADP · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:diygod:rsshub:*:*:*:*:*:*:*:* | — | — | — |
- cpe:2.3:a:diygod:rsshub:*:*:*:*:*:*:*:* Versions — — ·—
Remediation
- Fix · CNA RSSHub (DIYgod) Fixed in 64e00e7
Timeline
- 2026-10-02 Threatist record created from CVE-2024-47179
References
Other 8
- https://github.com/DIYgod/RSSHub/security/advisories/GHSA-9mqc-fm24-h8cw
- https://github.com/DIYgod/RSSHub/commit/64e00e743aba2a239508fea97825994e3d687ecc
- https://codeql.github.com/codeql-query-help/javascript/js-actions-command-injection
- https://github.com/DIYgod/RSSHub/actions/runs/10141104413/job/28037643579#step:1:17
- https://github.com/DIYgod/RSSHub/blob/e08733f94c81440d19ee6a5fd5e915e9a65395f5/.github/workflows/docker-test-cont.yml
- https://securitylab.github.com/advisories/GHSL-2024-178_RSSHub
- https://securitylab.github.com/research/github-actions-preventing-pwn-requests
- https://securitylab.github.com/research/github-actions-untrusted-input
More DIYgod vulnerabilities
- TI-2022-13154 Denial of Service (DoS) vulnerability in RSSHub CVSS 3.1HIGH 7.5
- TI-2023-08742 RSSHub is vulnerable to SSRF (Server-Side Request Forgery) CVSS 3.1HIGH 8.8
- TI-2021-04378 Risk of code injection in RSSHub CVSS 3.1CRITICAL 9.8
- TI-2024-18530 RSSHub vulnerable to SSRF in /mastodon, /zjoi, and /m4 CVSS 3.1MEDIUM 6.5
- TI-2024-18529 RSSHub Cross-site Scripting vulnerability caused by internal media proxy CVSS 3.1MEDIUM 6.1
- TI-2023-11638 RSSHub is vulnerable to cross-site scripting (XSS) via unvalidated URL parameters CVSS 3.1MEDIUM 6.1
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences