Affected versions
Ubuntu16.04:LTS/ruby-nokogiri
- Affected versions
- * || =1.6.6.2+ds-2build2 || =1.6.6.3-1 || =1.6.7-1 || =1.6.7.1-1 || =1.6.7.2-3 || =1.6.7.2-3build1 || =1.6.7.2-3ubuntu0.1
- Fixed version
- Not reported
Ubuntu18.04:LTS/ruby-nokogiri
- Affected versions
- * || =1.8.0-1 || =1.8.1-1 || =1.8.1-1build1 || =1.8.2-1build1 || =1.8.2-1ubuntu0.1
- Fixed version
- Not reported
Ubuntu24.04:LTS/ruby-nokogiri
- Affected versions
- * || =1.14.3+dfsg-2 || =1.16.2+dfsg-1 || =1.16.2+dfsg-1build1
- Fixed version
- Not reported
Ubuntu26.04:LTS/ruby-nokogiri
- Affected versions
- * || =1.18.2+dfsg-1build1 || =1.18.10+dfsg-2 || =1.18.10+dfsg-3
- Fixed version
- Not reported
- Affected versions
- Unknown
- Fixed version
- Not reported
- Affected versions
- Unknown
- Fixed version
- Not reported
- Affected versions
- Unknown
- Fixed version
- Not reported
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.

