Skip to content

Conversation

flavorjones
Copy link
Member

Security release v1.4.4 was done in a private repo on the v1.4.x branch. This PR brings those changes to master.

which correctly sanitizes data URL mediatypes
to prepare for a better fix
Also, notably, document the decisions behind this approach in a
decision record.
v2.19.1 has the new methods we're using:

- Loofah::HTML5::Scrub.cdata_needs_escaping?
- Loofah::HTML5::Scrub.cdata_escape
- Loofah::HTML5::Scrub.scrub_uri_attribute
- Loofah::HTML5::Scrub.scrub_attribute_that_allows_local_ref

avoiding code duplication in this gem.
@flavorjones flavorjones merged commit 79bc10b into master Dec 13, 2022
@flavorjones flavorjones deleted the flavorjones-port-1.4.4-changes branch December 13, 2022 14:25
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

Successfully merging this pull request may close these issues.

1 participant