# Vulnerable dependencies in Nokogiri

Advisory record · `GHSA-fq42-c5rg-92c2`

- **Identifiers:** `GHSA-fq42-c5rg-92c2` · `CVE-2022-51000`
- **State:** Confirmed
- **Severity:** No CVSS score
- **Critical:** No
- **Weakness (CWE):** [CWE-416](https://cwe.mitre.org/data/definitions/416.html)
- **Tags:** [Memory corruption](https://agentprime.io/advisories/tag/memory-corruption.md)
- **Published:** 25 Feb 2022
- **Updated:** 27 Aug 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 25 Feb 2022, 20:32 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

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

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> Nokogiri versions before 1.13.2 are vulnerable because they bundle libxslt before 1.1.35 and libxml2 before 2.9.13 when using the packaged libraries (not system libraries). An attacker can cause denial of service by supplying untrusted XSL stylesheets for transformation. A libxml2 issue (CVE-2022-23308) may allow denial of service, memory disclosure, or code execution when untrusted documents are parsed with DTDVALID enabled and NOENT disabled. Upgrade to Nokogiri 1.13.2 or later.

Written 8 Nov 2026.

## 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

No source has published a CVSS score for this record yet.

- **CISA KEV:** Not listed.
- **EPSS:** No score.

## Timeline

- 21 Feb 2022, 18:55 UTC: [Published by the maintainers as a GitHub repository advisory](https://github.com/sparklemotion/nokogiri/security/advisories/GHSA-fq42-c5rg-92c2)
- 31 Oct 2026, 15:16 UTC: First seen by agentprime
- 31 Oct 2026, 15:16 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-fq42-c5rg-92c2)

## Sources

- [GitHub Advisory Database: GHSA-fq42-c5rg-92c2](https://github.com/advisories/GHSA-fq42-c5rg-92c2)
- [OSV: GHSA-fq42-c5rg-92c2](https://osv.dev/vulnerability/GHSA-fq42-c5rg-92c2)
- <https://github.com/sparklemotion/nokogiri/security/advisories/GHSA-fq42-c5rg-92c2>
- <https://github.com/sparklemotion/nokogiri>

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-fq42-c5rg-92c2>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-fq42-c5rg-92c2/>. Everything for agents: <https://agentprime.io/llms.txt>.
