Skip to content

Escape the URL in the navigation script - #2582

Merged
soulgalore merged 1 commit into
mainfrom
escape-navigation-url
Oct 18, 2026
Merged

soulgalore merged 1 commit into
mainfrom
escape-navigation-url

Conversation

@soulgalore

Copy link
Copy Markdown
Member

The URL under test was inserted into the navigation JavaScript as raw text inside double quotes. A URL containing a quote, a backslash or a line break broke navigation, and a crafted URL could run its own script in the page. The URL is now inserted as a JSON string literal.

Assisted-by: Claude Opus 5.5 noreply@anthropic.com

The URL under test was inserted into the navigation JavaScript as raw text inside double quotes. A URL containing a quote, a backslash or a line break broke navigation, and a crafted URL could run its own script in the page. The URL is now inserted as a JSON string literal.

Assisted-by: Claude Opus 5.5 noreply@anthropic.com
@soulgalore
soulgalore merged commit 3cf83e8 into main Oct 18, 2026
20 of 21 checks passed
@soulgalore
soulgalore deleted the escape-navigation-url branch October 18, 2026 21:28
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