# CVE-2026-79772: Nokogiri before 1.19.1 Unchecked Return Value canonicalize

- Severity: Medium 6.9 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.25%, higher than 17% of CVEs (2026-12-01)
- Published: 2026-02-18T21:57:38.000Z
- Modified: 2026-09-10T03:50:36.054Z
- Also known as: GHSA-wx95-c6cv-8532
- Weaknesses: CWE-252
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: VulnCheck

## Description

Nokogiri versions before 1.19.1 fail to check the return value from xmlC14NExecute in the canonicalize method, returning an empty string on failure instead of raising an exception. Attackers can exploit this to bypass signature validation in downstream SAML libraries by providing invalid canonicalized XML that is incorrectly accepted as valid.

(As written by CVE List.)

## Affected

- sparklemotion nokogiri: from 1.5.1 before 1.19.1 (not affected: 1.19.1)
- nokogiri (RubyGems): from 1.5.1 before 1.19.1
- nokogiri nokogiri: from 1.5.1 before 1.19.1

## Every score

- VulnCheck: CVSS:4.0 6.9 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N`
- VulnCheck: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`

## References

- <https://github.com/sparklemotion/nokogiri/security/advisories/GHSA-wx95-c6cv-8532> (vendor-advisory, web)
- <https://www.vulncheck.com/advisories/nokogiri-before-unchecked-return-value-canonicalize> (third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-79772> (advisory)
- <https://github.com/sparklemotion/nokogiri> (package)

## Sources

- CVE List: [CVE-2026-79772](https://www.cve.org/CVERecord?id=CVE-2026-79772), CVE Terms of Use, modified 2026-08-28
- GitHub Advisory Database: [GHSA-wx95-c6cv-8532](https://github.com/advisories/GHSA-wx95-c6cv-8532), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-79772](https://nvd.nist.gov/vuln/detail/CVE-2026-79772), Public domain, modified 2026-09-01

---

Page: https://cve.day/CVE-2026-79772 · Whole record: https://cve.day/CVE-2026-79772.json · Rebuilt by cve.day 2026-11-25T22:59:35.176Z
