Skip to content

Update DOMPurify by overriding version used by Mirador - #6233

Open
tdonohue wants to merge 1 commit into
DSpace:mainfrom
tdonohue:update_dompurify
Open

Update DOMPurify by overriding version used by Mirador#6233
tdonohue wants to merge 1 commit into
DSpace:mainfrom
tdonohue:update_dompurify

Conversation

@tdonohue

@tdonohue tdonohue commented Sep 10, 2026

Copy link
Copy Markdown
Member

Description

Update the version of dompurify used by Mirador by overriding the value (in the overrides section of package.json). Bumps dompurify from v2.5.8 to v3.4.15

This major upgrade to v3 moves us to a version of dompurify that has much fewer vulnerability warnings (as v2 has a larger number of potential vulnerabilities).

However, from my testing, this major upgrade to dompurify is still compatible with Mirador v3 because dompurify is only used in a few places to sanitize the HTML in Mirador.

Instructions for Reviewers

  • Verify tests pass
  • Optionally, verify no changes in behavior to Mirador viewer for IIIF Integration
    • NOTE: I've verified locally that the Mirador viewer still works the same as before. I've not found any differences in behavior.

@tdonohue tdonohue added this to the 11.0 milestone Sep 10, 2026
@tdonohue tdonohue added dependencies Pull requests that update a dependency file high priority 1 APPROVAL pull request only requires a single approval to merge integration: IIIF Related to International Image Interoperability Framework (IIIF) support labels Sep 10, 2026
@tdonohue tdonohue changed the title Update dompurify by overriding version used by mirador Update dompurify by overriding version used by Mirador Sep 10, 2026
@tdonohue tdonohue changed the title Update dompurify by overriding version used by Mirador Update DOMPurify by overriding version used by Mirador Sep 10, 2026
@tdonohue tdonohue added port to dspace-9_x This PR needs to be ported to `dspace-9_x` branch for next bug-fix release port to dspace-10_x This PR needs to be ported to `dspace-10_x` branch for next bug-fix release labels Sep 10, 2026
@tdonohue tdonohue moved this to 🙋 Needs Reviewers Assigned in DSpace 11.0 Release Sep 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1 APPROVAL pull request only requires a single approval to merge dependencies Pull requests that update a dependency file high priority integration: IIIF Related to International Image Interoperability Framework (IIIF) support port to dspace-9_x This PR needs to be ported to `dspace-9_x` branch for next bug-fix release port to dspace-10_x This PR needs to be ported to `dspace-10_x` branch for next bug-fix release

Projects

Status: 🙋 Needs Reviewers Assigned

Development

Successfully merging this pull request may close these issues.

1 participant