VDB
Sign up
MEDIUM5.4

GHSA-c3gv-9cxf-6f57

Loofah Allows Cross-site Scripting

Quick fix

GHSA-c3gv-9cxf-6f57 — loofah: upgrade to the fixed version with the command below.

bundle update loofah

Details

In the Loofah gem for Ruby through v2.3.0, unsanitized JavaScript may occur in sanitized output when a crafted SVG element is republished.

Are you affected?

Enter the version of the package you're using.

Affected packages

RubyGems/loofah
Introduced in: 0Fixed in: 2.3.1
Fixbundle update loofah

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/loofah"]}'