Skip to content
This repository was archived by the owner on Apr 27, 2026. It is now read-only.

MWPW-192736: validate milolibs/unitylibs branch params to prevent DOM…#1326

Merged
Ruchika4 merged 1 commit into
mainfrom
stage
Apr 27, 2026
Merged

MWPW-192736: validate milolibs/unitylibs branch params to prevent DOM…#1326
Ruchika4 merged 1 commit into
mainfrom
stage

Conversation

@Ruchika4
Copy link
Copy Markdown
Collaborator

@Ruchika4 Ruchika4 commented Apr 27, 2026

… XSS (#1325)

The milolibs and unitylibs query params were interpolated directly into template literals used for dynamic import()s, letting an attacker point module loading at an arbitrary origin and execute JS in the page context.

Add a strict whitelist (^[a-zA-Z0-9_-]+$) and throw on invalid input in head.html, acrobat/scripts/utils.js, acrobat/scripts/scripts.js, and acrobat/blocks/unity/unity.js.

Description

Related Issue

Resolves: MWPW-192736

Test URLs

… XSS (#1325)

The milolibs and unitylibs query params were interpolated directly into
template literals used for dynamic import()s, letting an attacker point
module loading at an arbitrary origin and execute JS in the page context.

Add a strict whitelist (^[a-zA-Z0-9_-]+$) and throw on invalid input in
head.html, acrobat/scripts/utils.js, acrobat/scripts/scripts.js, and
acrobat/blocks/unity/unity.js.

Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
@aem-code-sync
Copy link
Copy Markdown

aem-code-sync Bot commented Apr 27, 2026

Hello, I'm the AEM Code Sync Bot and I will run some actions to deploy your branch and validate page speed.
In case there are problems, just click a checkbox below to rerun the respective action.

  • Re-run PSI checks
  • Re-sync branch
Commits

@Ruchika4 Ruchika4 merged commit ac040e4 into main Apr 27, 2026
13 of 18 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants