Skip to content

CodeQL SM02383: js/incomplete-sanitization#1455

Merged
pablo-msft merged 1 commit into
mainfrom
user/pablo/codeql
May 28, 2026
Merged

CodeQL SM02383: js/incomplete-sanitization#1455
pablo-msft merged 1 commit into
mainfrom
user/pablo/codeql

Conversation

@pablo-msft
Copy link
Copy Markdown
Contributor

No description provided.

@pablo-msft pablo-msft requested a review from a team as a code owner May 27, 2026 22:15
@bmehta001 bmehta001 requested a review from Copilot May 27, 2026 22:32
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses the CodeQL finding SM02383 (js/incomplete-sanitization) by improving how the build version string is normalized after reading Solutions/version.txt, ensuring trailing line endings/whitespace don’t propagate into generated version outputs.

Changes:

  • Replace single "\n" removal with String.prototype.trim() in the Windows Script Host version generator.
  • Apply the same trim() normalization in the Node-based version generator for consistency.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
tools/version.js Uses trim() to fully remove surrounding whitespace/line endings from the version tag before further processing.
tools/version-node.js Uses trim() to normalize the version tag read from disk before placeholder replacement.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@pablo-msft pablo-msft merged commit 31e5986 into main May 28, 2026
26 of 28 checks passed
@pablo-msft pablo-msft deleted the user/pablo/codeql branch May 28, 2026 02:31
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