Skip to content

Upgrade dompurify to version 3.2.6 in order to patch CVE-2025-48050 vulnerability #10478

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
zeraye opened this issue Jun 3, 2025 · 0 comments

Comments

@zeraye
Copy link

zeraye commented Jun 3, 2025

There is vulnerability CVE-2025-48050 with CVSS v3 score of 7.5 (High), see on nvd.nist.gov site. Upgrade to dompurify version 3.2.6 would patch this issue. It's not as easy as bumping version, because some tests fail after upgrade. Order of attributes have changed, so tests fail with issues like:

- <div class=\"renderedMarkdown\"><p><img title=\"Image title\" alt=\"Image alt text\" src=\"http://image.source\"></p></div>
+ <div class=\"renderedMarkdown\"><p><img src=\"http://image.source\" alt=\"Image alt text\" title=\"Image title\"></p></div>

Not sure if any users rely on attribute order. If it's just about fixing tests, I can send a PR to update them and upgrade dompurify.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant