trix icon indicating copy to clipboard operation
trix copied to clipboard

Please release a new version to include DOMPurify 3.2.4 (security fix)

Open adamberecz opened this issue 1 year ago • 3 comments

Hi Trix team!

First off, thanks for maintaining Trix — it's a great editor and we've been happily using it as part of our own form builder.

I'm reaching out regarding a security-related dependency update. The current version of Trix depends on DOMPurify@^3.2.3, which allows it to resolve to version 3.2.4. This newer version contains a fix for CVE-2025-26791, a medium severity vulnerability in DOMPurify.

Dependency scanners like OWASP Dependency-Check are currently flagging Trix due to the inclusion of DOMPurify 3.2.3 in the distributed builds (dist/ files).

Would it be possible to publish a new patch or minor release of Trix that triggers an update and rebuild using DOMPurify 3.2.4? That would help resolve the warning for all users downstream without needing manual overrides.

Thanks again for your work on this project!

adamberecz avatar Apr 11 '25 07:04 adamberecz

@jorgemanrubia Hi i saw you where the last one making contributions. As this breaks security checks and it seems like a small patch, is it possible that someone from the team takes this up?

rogerhendriks avatar Apr 15 '25 08:04 rogerhendriks

I have submitted a PR that updates the version to 3.2.5 (the latest version)

https://github.com/basecamp/trix/pull/1232

jakeonrails avatar Apr 24 '25 22:04 jakeonrails

Released in v2.1.14. Downstream PR to Rails is https://github.com/rails/rails/pull/54990

flavorjones avatar Apr 29 '25 11:04 flavorjones