MEDIUM5.4
GHSA-g4xq-jx4w-4cjv
Loofah Cross-site Scripting vulnerability
Quick fix
GHSA-g4xq-jx4w-4cjv — loofah: upgrade to the fixed version with the command below.
bundle update loofahDetails
In the Loofah gem for Ruby, through version 2.2.2, unsanitized JavaScript may occur in sanitized output when a crafted SVG element is republished. Users are advised to upgrade to version 2.2.3.
See https://github.com/flavorjones/loofah/issues/154 for more details.
Are you affected?
Enter the version of the package you're using.
Affected packages
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"]}'