Skip to content

Fix DOM XSS in advanced-robots-txt-generator renderSitemaps - #808

Merged
praveenscience merged 1 commit into
praveenscience:mainfrom
devprashant19:fix-advanced-robots-txt-generator-xss
Jul 30, 2026
Merged

Fix DOM XSS in advanced-robots-txt-generator renderSitemaps#808
praveenscience merged 1 commit into
praveenscience:mainfrom
devprashant19:fix-advanced-robots-txt-generator-xss

Conversation

@devprashant19

Copy link
Copy Markdown
Contributor

This PR fixes the DOM XSS reflection within tools/advanced-robots-txt-generator.html. The renderSitemaps() function failed to escape user-provided sitemap string values when injecting them into innerHTML.

Fix: Wrapped the interpolated sitemap variable (sm) with the existing esc() helper during the rendering loop.

Fixes #802

@praveenscience
praveenscience merged commit 0131dd1 into praveenscience:main Jul 30, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: DOM XSS via unescaped agent names

2 participants