# CVE-2022-23476: ruby-nokogiri: Nokogiri is an open source XML and HTML library for the Ruby programming language

CVE-2022-23476 is fixed in ruby-nokogiri on 1 platform, first by DEBIAN-CVE-2022-23476, released December 8, 2022. It is not reported as exploited. Patch Radar priority: High.

- Web page: https://patchblox.com/security/cve/CVE-2022-23476
- Priority: High
- CVSS: 7.5 (high)
- EPSS: 0.0182
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Dec 8, 2022

## Description

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.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | ruby-nokogiri Debian 12.15 (bookworm) | 1.13.10+dfsg-1 | [DEBIAN-CVE-2022-23476](https://patchblox.com/security/data/fix/linux/debian-cve-2022-23476.md) | Dec 8, 2022 |
| Linux | ruby-nokogiri Debian 13.5 (trixie) | 1.13.10+dfsg-1 | [DEBIAN-CVE-2022-23476](https://patchblox.com/security/data/fix/linux/debian-cve-2022-23476.md) | Dec 8, 2022 |
| Linux | ruby-nokogiri Debian 14 | 1.13.10+dfsg-1 | [DEBIAN-CVE-2022-23476](https://patchblox.com/security/data/fix/linux/debian-cve-2022-23476.md) | Dec 8, 2022 |

---

Data as of 2026-11-08T13:06:02Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
