Skip to content

Fix XSS vulnerability in EJS template haiku text rendering#4

Draft
Copilot wants to merge 2 commits into
mainfrom
copilot/fix-qs-arraylimit-bypass
Draft

Fix XSS vulnerability in EJS template haiku text rendering#4
Copilot wants to merge 2 commits into
mainfrom
copilot/fix-qs-arraylimit-bypass

Conversation

Copilot AI commented Mar 2, 2026

Copy link
Copy Markdown

Haiku text was rendered using EJS unescaped output (<%-), allowing raw HTML execution and exposing an XSS attack vector.

Change

  • views/index.ejs: Replace unescaped output tag with escaped output tag for haiku text
- ><%- haikus[i].text %></p>
+ ><%= haikus[i].text %></p>

<%= HTML-encodes output, neutralizing any injected markup or script content.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: sfosss <147890625+sfosss@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix qs's arrayLimit bypass in comma parsing Fix XSS vulnerability in EJS template haiku text rendering Mar 2, 2026
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.

2 participants