Skip to content

fix(core): sanitize shopper supplied input#2385

Merged
chanceaclark merged 1 commit into
canaryfrom
CATALYST-1310
Jun 10, 2025
Merged

fix(core): sanitize shopper supplied input#2385
chanceaclark merged 1 commit into
canaryfrom
CATALYST-1310

Conversation

@chanceaclark

@chanceaclark chanceaclark commented Jun 6, 2025

Copy link
Copy Markdown
Contributor

What/Why?

Sanitizes any shopper supplied input that is set by dangerouslySetInnerHTML.

Testing

Screenshot 2025-06-06 at 13 58 06
Screenshot 2025-06-06 at 13 58 29

Migration

Add isomorphic-dompurify as a dependency and use it anywhere where we are using dangerouslySetInnerHTML.

@chanceaclark
chanceaclark requested review from a team and bc-donfran June 6, 2025 20:00
@changeset-bot

changeset-bot Bot commented Jun 6, 2025

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 9a168ff

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@bigcommerce/catalyst-core Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel

vercel Bot commented Jun 6, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
catalyst-canary ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 10, 2025 8:15pm
3 Skipped Deployments
Name Status Preview Comments Updated (UTC)
catalyst ⬜️ Ignored (Inspect) Jun 10, 2025 8:15pm
catalyst-au ⬜️ Ignored (Inspect) Visit Preview Jun 10, 2025 8:15pm
catalyst-uk ⬜️ Ignored (Inspect) Visit Preview Jun 10, 2025 8:15pm

@chanceaclark chanceaclark changed the title fix(core): sanitize merchant or shopper supplied input fix(core): sanitize shopper supplied input Jun 10, 2025
@chanceaclark
chanceaclark enabled auto-merge June 10, 2025 20:13
@chanceaclark
chanceaclark added this pull request to the merge queue Jun 10, 2025
Merged via the queue into canary with commit 32a28b9 Jun 10, 2025
10 checks passed
@chanceaclark
chanceaclark deleted the CATALYST-1310 branch June 10, 2025 20:17
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.

3 participants