VDB
Sign up
MEDIUM6.5

GHSA-62qp-3fxm-9wxf

Nokogiri vulnerable to DoS while parsing XML documents

Quick fix

GHSA-62qp-3fxm-9wxf — nokogiri: upgrade to the fixed version with the command below.

bundle update nokogiri

Details

Nokogiri gem has Denial of Service via infinite loop when parsing XML documents

Are you affected?

Enter the version of the package you're using.

Affected packages

RubyGems/nokogiri
Introduced in: 1.5.0Fixed in: 1.5.11
Fixbundle update nokogiri
RubyGems/nokogiri
Introduced in: 1.6.0Fixed in: 1.6.1
Fixbundle update nokogiri

References

Check it before you install it

One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.

curl -s https://vdb.ai.kr/v1/ai/check-packages \
  -H 'Content-Type: application/json' \
  -d '{"packages":["pkg:gem/nokogiri"]}'