CVE-2023-22493: Rsshub RSSHub SSRF Vulnerability Vulnerability

HIGH
Advisory Identifier: GHSA-64wp-jh9p-5cg2
CVSS 8.8
CWE-918
Published
Advisory Summary

CVE-2023-22493 is a HIGH (CVSS 8.8) rsshub ssrf vulnerability vulnerability (CWE-918: Server-Side Request Forgery (SSRF)) affecting Rsshub libraries in the npm ecosystem. The issue involves rsshub ssrf vulnerability. Remediation is available by upgrading affected packages to version 1.0.0-master.a66cbcf.

CVE-2023-22493 at a Glance

CVE Identifier CVE-2023-22493
GHSA Identifier GHSA-64wp-jh9p-5cg2
Severity HIGH
CVSS v3.1 Base Score 8.8
CWE Classification CWE-918: Server-Side Request Forgery (SSRF)
Affected Product Rsshub
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 8.8

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:L).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity Low (I:L)
Availability Low (A:L)

How to Fix CVE-2023-22493

To remediate this vulnerability, upgrade all affected Rsshub dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

rsshub fixed: 1.0.0-master.a66cbcf
npm install rsshub@1.0.0-master.a66cbcf
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls rsshub

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2023-22493, inspect your project dependencies using npm:

npm ls rsshub

Analyze the terminal output to locate any version of Rsshub in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.0.0-master.a66cbcf), your application is affected.

Note: The npm ls rsshub command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-918: Server-Side Request Forgery (SSRF), where the web server receives a url or similar request from an upstream component and retrieves the contents of this url, but it does not sufficiently ensure that the request is being sent to the expected destination. In Rsshub, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

## Summary RSSHub is vulnerable to Server-Side Request Forgery (SSRF) attacks. This vulnerability allows an attacker to send arbitrary HTTP requests from the server to other servers or resources on the network. ## Description An attacker can exploit this vulnerability by sending a request to the affected routes with a malicious URL. For example, if an attacker controls the `ATTACKER.HOST` domain, they can send a request to affected routes with the value set to `ATTACKER.HOST%2F%23`. The `%2F` and `%23` characters are URL-encoded versions of the forward-slash (`/`) and pound (`#`) characters, respectively. In this context, an attacker could use those characters to append the base URL (i.e. `https://${input}.defined.host`) to be modified to `https://ATTACKER.HOST/#.defined.host`. This will cause the server to send a request to the attacker-controlled domain, allowing the attacker to potentially gain access to sensitive information or perform further attacks on the server. ## Impact An attacker could use this vulnerability to send requests to internal or any other servers or resources on the network, potentially gain access to sensitive information that would not normally be accessible and amplifying the impact of the attack. ## Reference Fixing PR: https://github.com/DIYgod/RSSHub/pull/11588

CVE-2023-22493 Affected Rsshub Versions

1 component(s)
Fixed Versions:
1.0.0-master.a66cbcf
Product / Package Ecosystem Affected Versions Fixed Version
rsshub
npm
< 1.0.0-master.a66cbcf
1.0.0-master.a66cbcf

References

Frequently Asked Questions

What is CVE-2023-22493?
CVE-2023-22493 is a security vulnerability in Rsshub involving RSSHub SSRF vulnerability under CWE-918: Server-Side Request Forgery (SSRF).
Which Rsshub versions are affected?
Affected versions include releases prior to 1.0.0-master.a66cbcf across affected packages: rsshub.
What version fixes CVE-2023-22493?
Upgrading to 1.0.0-master.a66cbcf (or the latest patched release for your respective branch) resolves the vulnerability.
Is rsshub affected?
Yes, rsshub is affected in releases prior to 1.0.0-master.a66cbcf. Upgrade your dependency to 1.0.0-master.a66cbcf or later.
What is the CVSS score of CVE-2023-22493?
CVE-2023-22493 has a CVSS v3.1 base score of 8.8 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:L.
What CWE is associated with CVE-2023-22493?
CVE-2023-22493 is classified under CWE-918: Server-Side Request Forgery (SSRF) (The web server receives a URL or similar request from an upstream component and retrieves the contents of this URL, but it does not sufficiently ensure that the request is being sent to the expected destination.).
How can I check npm dependencies for CVE-2023-22493?
Run the dependency tree command: 'npm ls rsshub'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-64wp-jh9p-5cg2",
  "modified" : "2023-01-23T22:17:31Z",
  "published" : "2023-01-11T22:04:44Z",
  "aliases" : [ "CVE-2023-22493" ],
  "summary" : "RSSHub SSRF vulnerability",
  "details" : "## Summary\n\nRSSHub is vulnerable to Server-Side Request Forgery (SSRF) attacks. This vulnerability allows an attacker to send arbitrary HTTP requests from the server to other servers or resources on the network.\n\n## Description\n\nAn attacker can exploit this vulnerability by sending a request to the affected routes with a malicious URL. For example, if an attacker controls the `ATTACKER.HOST` domain, they can send a request to affected routes with the value set to `ATTACKER.HOST%2F%23`.\nThe `%2F` and `%23` characters are URL-encoded versions of the forward-slash (`/`) and pound (`#`) characters, respectively. In this context, an attacker could use those characters to append the base URL (i.e. `https://${input}.defined.host`) to be modified to `https://ATTACKER.HOST/#.defined.host`. This will cause the server to send a request to the attacker-controlled domain, allowing the attacker to potentially gain access to sensitive information or perform further attacks on the server. \n\n## Impact\n\nAn attacker could use this vulnerability to send requests to internal or any other servers or resources on the network, potentially gain access to sensitive information that would not normally be accessible and amplifying the impact of the attack.\n\n## Reference\n\nFixing PR: https://github.com/DIYgod/RSSHub/pull/11588",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "rsshub"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.0.0-master.a66cbcf"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/DIYgod/RSSHub/security/advisories/GHSA-64wp-jh9p-5cg2"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-22493"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/DIYgod/RSSHub/pull/11588"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/DIYgod/RSSHub/commit/a66cbcf6eebc700bf97ab097f404f16ab415506a"
  }, {
    "type" : "WEB",
    "url" : "https://advisory.dw1.io/56"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/DIYgod/RSSHub"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-918" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-01-11T22:04:44Z",
    "nvd_published_at" : "2023-01-13T15:15:00Z"
  }
}