flavorjones / loofah

Ruby library for HTML/XML transformation and sanitization
MIT License
934 stars 137 forks source link

Security Warning - Cross-Site Scripting #211

Closed pandu-cls closed 3 years ago

pandu-cls commented 3 years ago

We are using Loofah as a dependency on some other gem. When it got upgraded to latest version 2.10.0 our brakeman is showing a security warning (Cross-Site Scripting). Please take a look at below for more details.

image

We are using below versions. Rails - 6.1.3.2 Ruby - 2.7.4 Brakeman - 4.8.2

Please let us know if any resolution is made or we have to downgrade to 2.9.1

flavorjones commented 3 years ago

@pandu-cls Thanks for asking this question. I believe this is a bug in brakeman that has been fixed if you upgrade to the latest version. See these issues for deeper context:

flavorjones commented 3 years ago

I've pinned #209 to hopefully help others who see this.

pandu-cls commented 3 years ago

@flavorjones Thank you very much for quick response. We have upgraded our brakeman version and it start passing now. Appreciated 👍