CVE-2022-23476
Unchecked return value from xmlTextReaderExpand in Nokogiri
Nokogiri is an open source XML and HTML library for the Ruby programming language. Nokogiri `1.13.8` and `1.13.9` fail to check the return value from `xmlTextReaderExpand` in the method `Nokogiri::XML::Reader#attribute_hash`. This can lead to a null pointer exception when invalid markup is being parsed. For applications using `XML::Reader` to parse untrusted inputs, this may potentially be a vector for a denial of service attack. Users are advised to upgrade to Nokogiri `>= 1.13.10`. Users may be able to search their code for calls to either `XML::Reader#attributes` or `XML::Reader#attribute_hash` to determine if they are affected.
Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.
Severity and exploitation evidence
EPSS: 1.832% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.
CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T17:28:52.703Z. Public exploit availability is not used to set this status.
CVSS 3.1 · 7.5 · published by GitHub_MCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Assessment source · checked 2026-11-19T12:56:19.622Z
Verification by field
| Field | Status | Checked at (UTC) | Source |
|---|---|---|---|
| kev | verified | 2026-11-19T17:28:52.703Z | CISA KEV |
| cvss | verified | 2026-11-19T12:56:19.622Z | CVE Program |
| epss | verified | 2026-11-19T16:04:32.877Z | FIRST EPSS |
| patches | verified | 2026-11-19T12:52:44.936Z | OSV |
| affected | verified | 2026-11-19T12:56:19.622Z | CVE Program |
| lifecycle | verified | 2026-11-19T12:56:19.622Z | CVE Program |
Affected versions and configuration
sparklemotion nokogiri; default status: unknown: >= 1.13.8, < 1.13.10 [affected; scheme: unspecified]
Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.
CVE Program · cve-json · full conditions
{
"affected": [
{
"vendor": "sparklemotion",
"product": "nokogiri",
"versions": [
{
"status": "affected",
"version": ">= 1.13.8, < 1.13.10"
}
]
}
],
"additionalContainers": [
{
"title": "CVE Program Container",
"references": [
{
"url": "https://github.com/sparklemotion/nokogiri/security/advisories/GHSA-qv4q-mr5r-qprj",
"name": "https://github.com/sparklemotion/nokogiri/security/advisories/GHSA-qv4q-mr5r-qprj",
"tags": [
"x_refsource_CONFIRM",
"x_transferred"
]
},
{
"url": "https://github.com/sparklemotion/nokogiri/commit/85410e38410f670cbbc8c5b00d07b843caee88ce",
"name": "https://github.com/sparklemotion/nokogiri/commit/85410e38410f670cbbc8c5b00d07b843caee88ce",
"tags": [
"x_refsource_MISC",
"x_transferred"
]
},
{
"url": "https://github.com/sparklemotion/nokogiri/commit/9fe0761c47c0d4270d1a5220cfd25de080350d50",
"name": "https://github.com/sparklemotion/nokogiri/commit/9fe0761c47c0d4270d1a5220cfd25de080350d50",
"tags": [
"x_refsource_MISC",
"x_transferred"
]
}
],
"providerMetadata": {
"orgId": "af854a3a-2127-422b-91ae-364da2661108",
"shortName": "CVE",
"dateUpdated": "2024-08-03T03:43:46.006Z"
}
},
{
"title": "CISA ADP Vulnrichment",
"metrics": [
{
"other": {
"type": "ssvc",
"content": {
"id": "CVE-2022-23476",
"role": "CISA Coordinator",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "yes"
},
{
"Technical Impact": "partial"
}
],
"version": "2.0.3",
"timestamp": "2025-04-23T15:48:08.798198Z"
}
}
}
],
"providerMetadata": {
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP",
"dateUpdated": "2025-04-23T16:31:18.189Z"
}
}
]
}Archived source JSONOSV · osv · full conditions
{
"id": "GHSA-qv4q-mr5r-qprj",
"aliases": [
"CVE-2022-23476"
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "1.13.8"
},
{
"fixed": "1.13.10"
}
]
}
],
"package": {
"name": "nokogiri",
"purl": "pkg:gem/nokogiri",
"ecosystem": "RubyGems"
},
"versions": [
"1.13.8",
"1.13.9"
],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/12/GHSA-qv4q-mr5r-qprj/GHSA-qv4q-mr5r-qprj.json"
}
}
],
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
}
],
"upstream": [],
"withdrawn": null,
"references": [
{
"url": "https://github.com/sparklemotion/nokogiri/security/advisories/GHSA-qv4q-mr5r-qprj",
"type": "WEB"
},
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2022-23476",
"type": "ADVISORY"
},
{
"url": "https://github.com/sparklemotion/nokogiri/commit/85410e38410f670cbbc8c5b00d07b843caee88ce",
"type": "WEB"
},
{
"url": "https://github.com/sparklemotion/nokogiri/commit/9fe0761c47c0d4270d1a5220cfd25de080350d50",
"type": "WEB"
},
{
"url": "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/nokogiri/CVE-2022-23476.yml",
"type": "WEB"
},
{
"url": "https://github.com/sparklemotion/nokogiri",
"type": "PACKAGE"
}
],
"relatedGitRanges": [],
"database_specific": {
"cwe_ids": [
"CWE-252",
"CWE-476"
],
"severity": "HIGH",
"github_reviewed": true,
"nvd_published_at": "2022-12-08T04:15:00Z",
"github_reviewed_at": "2022-12-08T03:03:33Z"
}
}Archived source JSONCorrection evidence
Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.
| Evidence type | Distribution / release | Package | Channel | Version or source note | Source |
|---|---|---|---|---|---|
| ecosystem-boundary | RubyGems / package | nokogiri | Not a distribution channel | 1.13.10 | Official record |
Vendor notices and operational guidance
No connected vendor notice is available for this record.
Original sources and dates
- CISA KEVConsulted: 2026-11-19T17:28:52.703ZArchived source JSON
Source publication: not supplied
Source modification: 2026-11-18T19:17:41.0354ZDocument fingerprint
a35fdc67c7d9802988dcfc1d3ff1198da327948d1db122ab7692ac201055ac56 - OSVConsulted: 2026-11-19T12:52:44.936ZArchived source JSON
Source publication: 2022-12-08T03:03:33.000Z
Source modification: 2023-11-08T04:08:18.808ZDocument fingerprint
b7b4a134a348f3629d479548f0742a30bfb981bd376f43db4edc65815caf273c - CVE ProgramConsulted: 2026-11-19T12:56:19.622ZArchived source JSON
Source publication: 2022-12-08T03:03:24.572Z
Source modification: 2025-04-23T16:31:18.189ZDocument fingerprint
6bc577b280a15a566c54f8ccb39bfb1b8f0a022440ddb7123fd0fca45b178d68 - FIRST EPSSConsulted: 2026-11-19T16:04:32.877ZArchived source JSON
Source publication: not supplied
Source modification: not suppliedDocument fingerprint
09692db23ae991b23210d76fe49e08c229368c3f28b258bdb2be98d30dab7493
Official status history
- UNKNOWN → PUBLISHED · · evidence