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.
{
"cwe_ids": [
"CWE-400"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/24xxx/CVE-2022-24839.json",
"cna_assigner": "GitHub_M"
}{
"extracted_events": [
{
"introduced": "0"
},
{
"fixed": "1.9.22.noko2"
}
],
"cpe": "cpe:2.3:a:nekohtml_project:nekohtml:*:*:*:*:*:nokogiri:*:*",
"source": [
"CPE_RANGE",
"REFERENCES"
]
}[
{
"signature_type": "Line",
"digest": {
"line_hashes": [
"162085203086676783445262590303505274103",
"44068856813710640741043854333266296888",
"300996526665314268531739130271894187639",
"203104893267447267619225559189799286351"
],
"threshold": 0.9
},
"target": {
"file": "src/org/cyberneko/html/HTMLScanner.java"
},
"signature_version": "v1",
"id": "CVE-2022-24839-5741f71c",
"source": "https://github.com/sparklemotion/nekohtml/commit/a800fce3b079def130ed42a408ff1d09f89e773d",
"deprecated": false
},
{
"signature_type": "Function",
"digest": {
"function_hash": "189295587538258004906619038337766323638",
"length": 2692.0
},
"target": {
"file": "src/org/cyberneko/html/HTMLScanner.java",
"function": "scanPI"
},
"signature_version": "v1",
"id": "CVE-2022-24839-879d8e0d",
"source": "https://github.com/sparklemotion/nekohtml/commit/a800fce3b079def130ed42a408ff1d09f89e773d",
"deprecated": false
}
]
"2026-07-15T00:28:14Z"
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-24839.json"