Skip to content

[Infrastructure] Update vulnerable npm dependencies - #7705

Merged
wtgodbe merged 1 commit into
mainfrom
infrastructure/update-npm-dependencies-2026-08-18
Aug 18, 2026
Merged

[Infrastructure] Update vulnerable npm dependencies#7705
wtgodbe merged 1 commit into
mainfrom
infrastructure/update-npm-dependencies-2026-08-18

Conversation

@wtgodbe

@wtgodbe wtgodbe commented Aug 18, 2026

Copy link
Copy Markdown
Member

Summary

  • update brace-expansion from 1.1.16 to 1.1.18 in the Azure DevOps report task
  • update DOMPurify from 3.2.4 to 3.4.13 and refresh the bundled project-template asset
  • ingest the patched package versions through the dotnet-public-npm Azure Artifacts feed

Security alerts

This addresses all currently open npm Dependabot alerts: 2 high, 15 medium, and 4 low.

Testing

  • installed both updated lockfiles with npm ci through the Azure Artifacts feed
  • verified the bundled DOMPurify file exactly matches DOMPurify 3.4.13
Microsoft Reviewers: Open in CodeFlow

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>
Copilot AI lite review requested due to automatic review settings August 18, 2026 20:00
@wtgodbe
wtgodbe requested review from a team as code owners August 18, 2026 20:00

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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.

Comment thread src/ProjectTemplates/package-lock.json
@wtgodbe
wtgodbe merged commit acb85d7 into main Aug 18, 2026
8 checks passed
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.

4 participants