CVE-2022-31110: Rsshub Denial of Service Vulnerability

MODERATE
Advisory Identifier: GHSA-jvxx-v45p-v5vf
CVSS 5.3
CWE-400 CWE-1333
Published
Advisory Summary

CVE-2022-31110 is a MODERATE (CVSS 5.3) denial of service vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting Rsshub libraries in the npm ecosystem. The issue involves denial of service (dos) vulnerability in rsshub. Remediation is available in the latest vendor maintenance releases.

CVE-2022-31110 at a Glance

CVE Identifier CVE-2022-31110
GHSA Identifier GHSA-jvxx-v45p-v5vf
Severity MODERATE
CVSS v3.1 Base Score 5.3
CWE Classification CWE-400: Uncontrolled Resource Consumption
Affected Product Rsshub
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 5.3

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:N/S:U/C:N/I:N/A:L).

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

How to Fix CVE-2022-31110

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: Latest secure release
npm install rsshub@Latest secure release
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-2022-31110, 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 the patched release), 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-400: Uncontrolled Resource Consumption, where the product does not properly control the allocation and maintenance of a limited resource. 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

### Impact Passing some special values to the `filter` and `filterout` parameters can cause an abnormally high CPU. Impact on the performance of the servers and RSSHub services. ### Patches It is fixed in 5c4177441417b44a6e45c3c63e9eac2504abeb5b , please update to this or the later versions as soon as possible. ### References Full report: https://github.com/DIYgod/RSSHub/issues/10045 ### For more information If you have any questions or comments about this advisory: * Open an issue in <https://github.com/DIYgod/RSSHub/issues> * Email us at [i@diygod.me](mailto:i@diygod.me) ### Credits @Rongronggg9

CVE-2022-31110 Affected Rsshub Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
rsshub
npm
≤ 1.0.0

References

Frequently Asked Questions

What is CVE-2022-31110?
CVE-2022-31110 is a security vulnerability in Rsshub involving Denial of Service (DoS) vulnerability in RSSHub under CWE-400: Uncontrolled Resource Consumption.
Which Rsshub versions are affected?
Affected versions include releases prior to current release patches across affected packages: rsshub.
What version fixes CVE-2022-31110?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is rsshub affected?
Yes, rsshub is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2022-31110?
CVE-2022-31110 has a CVSS v3.1 base score of 5.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L.
What CWE is associated with CVE-2022-31110?
CVE-2022-31110 is classified under CWE-400: Uncontrolled Resource Consumption (The product does not properly control the allocation and maintenance of a limited resource.).
How can I check npm dependencies for CVE-2022-31110?
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-jvxx-v45p-v5vf",
  "modified" : "2022-06-29T20:37:27Z",
  "published" : "2022-06-23T06:45:03Z",
  "aliases" : [ "CVE-2022-31110" ],
  "summary" : "Denial of Service (DoS) vulnerability in RSSHub",
  "details" : "### Impact\n\nPassing some special values to the `filter` and `filterout` parameters can cause an abnormally high CPU. Impact on the performance of the servers and RSSHub services.\n\n### Patches\n\nIt is fixed in 5c4177441417b44a6e45c3c63e9eac2504abeb5b , please update to this or the later versions as soon as possible.\n\n### References\n\nFull report: https://github.com/DIYgod/RSSHub/issues/10045\n\n### For more information\n\nIf you have any questions or comments about this advisory:\n* Open an issue in <https://github.com/DIYgod/RSSHub/issues>\n* Email us at [i@diygod.me](mailto:i@diygod.me)\n\n### Credits\n\n@Rongronggg9 \n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "rsshub"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "1.0.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/DIYgod/RSSHub/security/advisories/GHSA-jvxx-v45p-v5vf"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-31110"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/DIYgod/RSSHub/issues/10045"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/DIYgod/RSSHub/commit/4671720f4c5e1aaaad8fcc1dce684b6546baf2ff"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/DIYgod/RSSHub/commit/5c4177441417b44a6e45c3c63e9eac2504abeb5b"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/DIYgod/RSSHub"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-1333", "CWE-400" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-06-23T06:45:03Z",
    "nvd_published_at" : "2022-06-29T18:15:00Z"
  }
}