{"id":"CVE-2022-24839","published":"2022-04-11T21:25:12Z","modified":"2025-04-23T18:40:37Z","title":"Uncontrolled Resource Consumption in org.cyberneko.html (nokogiri fork)","vendor":"sparklemotion","product":"nekohtml","tier":"tail","description":{"text":"org.cyberneko.html is an html parser written in Java. The fork of `org.cyberneko.html` used by Nokogiri (Rubygem) raises a `java.lang.OutOfMemoryError` exception when parsing ill-formed HTML markup. Users are advised to upgrade to `>= 1.9.22.noko2`. Note: The upstream library `org.cyberneko.html` is no longer maintained. Nokogiri uses its own fork of this library located at https://github.com/sparklemotion/nekohtml and this CVE applies only to that fork. Other forks of nekohtml may have a similar vulnerability.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.02165,"percentile":0.82685,"provenance":"source"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"references":[{"url":"https://github.com/sparklemotion/nekohtml/security/advisories/GHSA-9849-p7jc-9rmv","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/sparklemotion/nekohtml/commit/a800fce3b079def130ed42a408ff1d09f89e773d","tags":["x_refsource_MISC"]},{"url":"https://www.oracle.com/security-alerts/cpujul2022.html","tags":["x_refsource_MISC"]}],"priority":{"score":21.8,"factors":[{"name":"EPSS percentile","points":16.54},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"sparklemotion","affectedVersions":[{"vendor":"sparklemotion","product":"nekohtml","versions":["< 1.9.22.noko2"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2025-04-23T15:55:44.535189Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Maven","package":"org.nokogiri:nekohtml","vulnerableRanges":["<1.9.22.noko2"],"patched":["1.9.22.noko2"],"from":["GHSA-9849-p7jc-9rmv"],"provenance":"source"}],"summary":{"text":"The Nokogiri fork of the nekohtml HTML parser (org.cyberneko.html, maintained by sparklemotion) raises a java.lang.OutOfMemoryError when it parses malformed HTML markup, leading to uncontrolled resource consumption. An attacker with network access can trigger it remotely by supplying crafted ill-formed HTML to a parsing application, requiring no authentication, no user interaction, and no special configuration.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:59:11Z"},"euvd":{"id":"EUVD-2023-1761","exploited":false,"provenance":"source"},"lineage":{"children":[{"from":"CVE-2022-24839","to":"CVE-2022-28366","relation":"related","confidence":"low","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"related","quote":"NOTE: this may be related to CVE-2022-24839.","from":"CVE.org","in":"CVE-2022-28366"}]}]}}