[Infrastructure] Update vulnerable npm dependencies - #7705
Merged
Conversation
Update DOMPurify and brace-expansion to patched versions and refresh the bundled DOMPurify template asset. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Updates npm dependency artifacts used by .NET Extensions project templates and the AI Evaluation Azure DevOps reporting task to address known vulnerabilities, including a DOMPurify refresh and a brace-expansion patch, using the dotnet-public-npm Azure Artifacts feed.
Changes:
- Bumps DOMPurify to 3.4.13 and refreshes the bundled DOMPurify asset in the AIChatWeb template.
- Updates the project-templates npm lockfile to consume the patched DOMPurify package.
- Updates the Azure DevOps task lockfile to use brace-expansion 1.1.18.
Reviewed changes
Copilot reviewed 1 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| src/ProjectTemplates/package-lock.json | Updates resolved DOMPurify package version and metadata in the templates dependency lockfile. |
| src/ProjectTemplates/Microsoft.Extensions.AI.Templates/templates/AIChatWeb-CSharp/AIChatWeb-CSharp.Web/wwwroot/lib/dompurify/README.md | Updates the documented DOMPurify version for the bundled asset. |
| src/ProjectTemplates/Microsoft.Extensions.AI.Templates/templates/AIChatWeb-CSharp/AIChatWeb-CSharp.Web/wwwroot/lib/dompurify/dist/purify.es.mjs | Refreshes the bundled DOMPurify distribution file to 3.4.13. |
| src/Libraries/Microsoft.Extensions.AI.Evaluation.Reporting/TypeScript/azure-devops-report/tasks/PublishAIEvaluationReport/package-lock.json | Updates brace-expansion to a patched version within the Azure DevOps report task lockfile. |
Files not reviewed (2)
- src/Libraries/Microsoft.Extensions.AI.Evaluation.Reporting/TypeScript/azure-devops-report/tasks/PublishAIEvaluationReport/package-lock.json: Generated file
- src/ProjectTemplates/package-lock.json: Generated file
Suppressed comments (1)
src/ProjectTemplates/package-lock.json:226
- This lockfile updates DOMPurify to 3.4.13, but the dependency declaration still appears to be "dompurify": "^3.2.4" (see packages[""] and src/ProjectTemplates/Microsoft.Extensions.AI.Templates/package.json). Keeping the declared range aligned with the intended minimum version helps prevent an accidental downgrade the next time the lockfile is regenerated.
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
shyamnamboodiripad
approved these changes
Aug 18, 2026
jeffhandley
approved these changes
Aug 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
brace-expansionfrom 1.1.16 to 1.1.18 in the Azure DevOps report taskdotnet-public-npmAzure Artifacts feedSecurity alerts
This addresses all currently open npm Dependabot alerts: 2 high, 15 medium, and 4 low.
Testing
npm cithrough the Azure Artifacts feedMicrosoft Reviewers: Open in CodeFlow