Skip to content

Conversation

@rrama
Copy link
Contributor

@rrama rrama commented May 15, 2025

Description

This PR, aims to fix a potential cross-site scripting (XSS) vulnerability in the HTML reports.
By using a space for replacements, the attacker cannot use a bypass using "${nonce${resolvesToEmpty}}".

Checklist

  • Tests added and all succeed
  • Linted
  • CHANGELOG.md updated
  • README.md updated, if user-facing

Screenshots / GIFs

Visuals that may help the reviewer. Please add screenshots for any UI change. GIFs are most welcome!

Co-authored-by: Knut Funkel <knut.funkel@snyk.io>
@rrama rrama temporarily deployed to snyk-msbuild-envs May 15, 2025 14:44 — with GitHub Actions Inactive
@rrama rrama temporarily deployed to snyk-msbuild-envs May 15, 2025 14:44 — with GitHub Actions Inactive
@rrama rrama temporarily deployed to snyk-msbuild-envs May 15, 2025 14:44 — with GitHub Actions Inactive
@rrama rrama marked this pull request as ready for review May 15, 2025 16:34
@rrama rrama requested a review from a team as a code owner May 15, 2025 16:34
@rrama
Copy link
Contributor Author

rrama commented May 16, 2025

I am going to put this back into draft, as we forgot to implement the !html.contains("\${nonce}") check that IntelliJ has.

@rrama rrama marked this pull request as draft May 16, 2025 15:07
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