# Nokogiri Inefficient Regular Expression Complexity

Advisory record · `GHSA-crjr-9rc5-ghw8`

- **Identifiers:** `GHSA-crjr-9rc5-ghw8` · `CVE-2022-24836`
- **State:** Confirmed
- **Severity:** CVSS 7.5 High
- **Critical:** No
- **Weakness (CWE):** [CWE-400](https://cwe.mitre.org/data/definitions/400.html) · [CWE-1333](https://cwe.mitre.org/data/definitions/1333.html)
- **Tags:** [Denial of service](https://agentprime.io/advisories/tag/dos.md)
- **Published:** 11 Apr 2022
- **Updated:** 16 Feb 2024
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 11 Apr 2022, 21:18 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `nokogiri` (RubyGems): affected `<1.13.4`; fixed in `1.13.4`

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 7.5 High, CVSS 3.1: `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`, from CNA (GitHub_M)

- **CISA KEV:** Not listed.
- **EPSS:** 0.035, the 89th percentile, on 9 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 11 Apr 2022, 20:48 UTC: [Published by the maintainers as a GitHub repository advisory](https://github.com/sparklemotion/nokogiri/security/advisories/GHSA-crjr-9rc5-ghw8)

## Sources

- [GitHub Advisory Database: GHSA-crjr-9rc5-ghw8](https://github.com/advisories/GHSA-crjr-9rc5-ghw8)
- [OSV: GHSA-crjr-9rc5-ghw8](https://osv.dev/vulnerability/GHSA-crjr-9rc5-ghw8)
- <https://github.com/sparklemotion/nokogiri/security/advisories/GHSA-crjr-9rc5-ghw8>
- <https://nvd.nist.gov/vuln/detail/CVE-2022-24836>
- <https://github.com/sparklemotion/nokogiri/commit/e444525ef1634b675cd1cf52d39f4320ef0aecfd>
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/nokogiri/CVE-2022-24836.yml>
- <https://github.com/sparklemotion/nokogiri>
- <https://github.com/sparklemotion/nokogiri/releases/tag/v1.13.4>
- <https://groups.google.com/g/ruby-security-ann/c/vX7qSjsvWis/m/TJWN4oOKBwAJ?utm_medium=email&utm_source=footer>
- <https://lists.debian.org/debian-lts-announce/2022/05/msg00013.html>
- <https://lists.debian.org/debian-lts-announce/2022/10/msg00018.html>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/6DHCOWMA5PQTIQIMDENA7R2Y5BDYAIYM>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/OUPLBUZVM4WPFSXBEP2JS3R6LMKRTLFC>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/XMDCWRQXJQ3TFSETPCEFMQ6RR6ME5UA3>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-crjr-9rc5-ghw8>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-crjr-9rc5-ghw8/>. Everything for agents: <https://agentprime.io/llms.txt>.
