Skip to content

fix(http-client-python): update vulnerable Spector dependencies - #12023

Merged
Yuchao Yan (msyyc) merged 2 commits into
microsoft:mainfrom
msyyc:fix/python-dependabot-morgan-multer
Sep 21, 2026
Merged

Yuchao Yan (msyyc) merged 2 commits into
microsoft:mainfrom
msyyc:fix/python-dependabot-morgan-multer

Conversation

@msyyc

Copy link
Copy Markdown
Contributor

Summary

  • Update Python emitter transitive development dependencies: morgan 1.11.0 -> 1.12.1 and multer 2.2.0 -> 2.3.0.
  • Address log forging, denial of service from file descriptor leaks, and file-size limit bypass vulnerabilities.
  • Keep existing Spector dependency ranges unchanged and add a dependency changelog entry.

Addresses Dependabot alerts 869, 890, and 892.

Validation

  • npm ci --ignore-scripts --no-audit --no-fund
  • npm run build (using the repository's Azure Python package feed after a PyPI TLS handshake failure)
  • npm run format
  • npm run lint -- --emitter
  • npm run test:emitter (23 tests passed)
  • pnpm format
  • Patched-version and Spector compatibility checks; multipart upload, file-size limit, and request-logging smoke checks.

Update morgan to 1.12.1 and multer to 2.3.0 to address Dependabot alerts 869, 890, and 892.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 94a0b72f-ce29-481a-9306-a096f633284d
@pkg-pr-new

pkg-pr-new Bot commented Sep 21, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@typespec/http-client-python@12023

commit: 1975841

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.

Copilot review overview

🟢 Approval recommended

The reviewed updates address the stated vulnerabilities with no unresolved issues.

Review effort: Lite
Findings: None

What changed in this PR

Updates vulnerable transitive Spector dependencies for the Python emitter.

Changes:

  • Upgrades morgan to 1.12.1 and multer to 2.3.0.
  • Adds a dependency changelog entry.
File Description
packages/​http-client-python/​package-lock.json Pins patched dependency versions.
.chronus/​changes/​http-client-python-security-dependencies-2026-09-20.md Documents the security dependency updates.
Files not reviewed (1)
  • packages/http-client-python/package-lock.json: Generated file

💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@github-actions

Copy link
Copy Markdown
Contributor

All changed packages have been documented.

  • ✅ @typespec/http-client-python
Show changes

@typespec/http-client-python - dependencies ✏️

Update transitive development dependencies morgan to 1.12.1 and multer to 2.3.0 to address log forging, denial of service, and file size limit bypass vulnerabilities.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 94a0b72f-ce29-481a-9306-a096f633284d
Copilot AI review requested due to automatic review settings September 21, 2026 02:15

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.

Copilot review overview

🟢 Approval recommended

No unresolved review issues were identified.

Review effort: Lite
Findings: None

Files not reviewed (1)
  • packages/http-client-python/package-lock.json: Generated file

@azure-sdk-automation

azure-sdk-automation Bot commented Sep 21, 2026 •

Copy link
Copy Markdown

You can try these changes here

🛝 Playground 🌐 Website 🛝 VSCode Extension

@msyyc
Yuchao Yan (msyyc) added this pull request to the merge queue Sep 21, 2026
Merged via the queue into microsoft:main with commit 40a9a0c Sep 21, 2026
37 checks passed
@msyyc
Yuchao Yan (msyyc) deleted the fix/python-dependabot-morgan-multer branch September 21, 2026 03:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

emitter:client:python Issue for the Python client emitter: @typespec/http-client-python

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants