# CVE-2022-24839: Uncontrolled Resource Consumption in org.cyberneko.html (nokogiri fork)

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.17%, higher than 82% of CVEs (2026-12-01)
- Published: 2022-04-11T21:25:12.000Z
- Modified: 2026-06-17T04:32:38.000Z
- Also known as: GHSA-9849-p7jc-9rmv
- Weaknesses: CWE-400
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- sparklemotion nekohtml: < 1.9.22.noko2
- org.nokogiri:nekohtml (Maven): before 1.9.22.noko2
- nekohtml_project nekohtml: before 1.9.22.noko2
- oracle weblogic_server: 12.2.1.3.0; 12.2.1.4.0; 14.1.1.0.0

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:N/A:P`

## References

- <https://github.com/sparklemotion/nekohtml/security/advisories/GHSA-9849-p7jc-9rmv> (vendor-advisory, web)
- <https://github.com/sparklemotion/nekohtml/commit/a800fce3b079def130ed42a408ff1d09f89e773d> (patch, web)
- <https://www.oracle.com/security-alerts/cpujul2022.html> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-24839> (advisory)
- <https://github.com/sparklemotion/nekohtml> (package)

## Sources

- CVE List: [CVE-2022-24839](https://www.cve.org/CVERecord?id=CVE-2022-24839), CVE Terms of Use, modified 2025-04-23
- GitHub Advisory Database: [GHSA-9849-p7jc-9rmv](https://github.com/advisories/GHSA-9849-p7jc-9rmv), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2022-24839](https://nvd.nist.gov/vuln/detail/CVE-2022-24839), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-24839 · Whole record: https://cve.day/CVE-2022-24839.json · Rebuilt by cve.day 2026-11-25T22:58:10.546Z
