GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Also check package name validity in InstallPackageRequest by jakebailey · Pull Request #63401 · microsoft/TypeScript

Conversation

@jakebailey

@jakebailey Jake Bailey (jakebailey) commented Apr 14, 2026

Copy link
Copy Markdown
Member

Extends #63368 to the code action.

This is still not a security boundary; any client that can send these args can already run commands locally.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@jakebailey
Also check package name validity in InstallPackageRequest
220e568
@jakebailey
Jake Bailey (jakebailey) requested review from Daniel Rosenwasser (DanielRosenwasser), Ryan Cavanaugh (RyanCavanaugh) and Copilot April 14, 2026 21:17
@github-project-automation github-project-automation Bot added this to PR Backlog Apr 14, 2026
@typescript-bot TypeScript Bot (typescript-bot) assigned Jake Bailey (jakebailey) Apr 14, 2026
@github-project-automation github-project-automation Bot moved this to Not started in PR Backlog Apr 14, 2026
@typescript-bot TypeScript Bot (typescript-bot) added Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug labels Apr 14, 2026
RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh) approved these changes Apr 14, 2026
View reviewed changes
@github-project-automation github-project-automation Bot moved this from Not started to Needs merge in PR Backlog Apr 14, 2026
DanielRosenwasser
Daniel Rosenwasser (DanielRosenwasser) approved these changes Apr 14, 2026
View reviewed changes
@jakebailey
Jake Bailey (jakebailey) enabled auto-merge April 14, 2026 21:25
Copilot AI reviewed Apr 14, 2026
View reviewed changes

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Adds package-name validation to the typings installer’s installPackage request path (code actions), and introduces a new tsserver baseline + unit test to ensure invalid package names are rejected.

Changes:

  • Validate InstallPackageRequest.packageName and return a failure response for invalid names.
  • Add a unit test that sends crafted applyCodeActionCommand requests with invalid package names.
  • Add a new reference baseline capturing the expected rejection behavior.

Reviewed changes

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

File Description
tests/baselines/reference/tsserver/codeFix/install-package-rejects-invalid-package-names.js New baseline verifying invalid package names are rejected during code action application.
src/typingsInstallerCore/typingsInstaller.ts Adds early package-name validation and returns an error response instead of attempting install.
src/testRunner/unittests/tsserver/codeFix.ts Adds a unit test to exercise the new validation via applyCodeActionCommand.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread src/testRunner/unittests/tsserver/codeFix.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread src/testRunner/unittests/tsserver/codeFix.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Copilot started reviewing on behalf of Jake Bailey (jakebailey) April 15, 2026 00:02
View session
@jakebailey
Jake Bailey (jakebailey) added this pull request to the merge queue Apr 15, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to no response for status checks Apr 15, 2026

Uh oh!

There was an error while loading. Please reload this page.

@jakebailey
Jake Bailey (jakebailey) added this pull request to the merge queue Apr 15, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to no response for status checks Apr 15, 2026

Uh oh!

There was an error while loading. Please reload this page.

@jakebailey
Jake Bailey (jakebailey) added this pull request to the merge queue Apr 15, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to no response for status checks Apr 15, 2026

Uh oh!

There was an error while loading. Please reload this page.

@jakebailey
Jake Bailey (jakebailey) added this pull request to the merge queue Apr 15, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to no response for status checks Apr 15, 2026

Uh oh!

There was an error while loading. Please reload this page.

@RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh) added this pull request to the merge queue Apr 15, 2026
Merged via the queue into microsoft:main with commit f1a9288 Apr 15, 2026
27 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@github-project-automation github-project-automation Bot moved this from Needs merge to Done in PR Backlog Apr 15, 2026
@jakebailey

Jake Bailey (jakebailey) commented Apr 15, 2026

Copy link
Copy Markdown
Member Author

TypeScript Bot (@typescript-bot) cherry-pick this to release-6.0

typescript-bot reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@typescript-bot

TypeScript Bot (typescript-bot) commented Apr 15, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Starting jobs; this comment will be updated as builds start and complete.

Command Status Results
cherry-pick this to release-6.0 ✅ Started ✅ Results
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jakebailey
Jake Bailey (jakebailey) deleted the harden-InstallPackageRequest branch April 15, 2026 18:48
TypeScript Bot (typescript-bot) pushed a commit that referenced this pull request Apr 15, 2026
@jakebailey @typescript-bot
Also check package name validity in InstallPackageRequest (#63401)
e6c0e2a
@typescript-bot TypeScript Bot (typescript-bot) mentioned this pull request Apr 15, 2026
🤖 Pick PR #63401 (Also check package name validity in...) into release-6.0 #63407
Merged
@typescript-bot

TypeScript Bot (typescript-bot) commented Apr 15, 2026

Copy link
Copy Markdown
Contributor

Hey, Jake Bailey (@jakebailey)! I've created #63407 for you.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Jake Bailey (jakebailey) added a commit that referenced this pull request Apr 15, 2026
@typescript-bot @jakebailey
🤖 Pick PR #63401 (Also check package name validity in...) into releas…
eeae9dd
…e-6.0 (#63407)

Co-authored-by: Jake Bailey <[email protected]>
@DanielRosenwasser Daniel Rosenwasser (DanielRosenwasser) added this to the TypeScript 6.0.3 milestone Apr 17, 2026
@rennerdo30 rennerdo30 (rennerdo30) mentioned this pull request Oct 21, 2026
[Historical PR] deps(npm-dev): bump typescript from 5.9.3 to 6.0.3 in /frontend rennerdo30/watch-together#75
Closed
@shinagawa-web Kazutomo Deguchi (shinagawa-web) mentioned this pull request Nov 4, 2026
chore(deps): TypeScript を、lib と examples で 6.0.3 に揃える nota/typed-api-spec#405
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

Copilot code review Copilot
Copilot review effort
Applies to this pull request for everyone.Learn more about Copilot code review.
Copilot left review comments
@DanielRosenwasser Daniel Rosenwasser (DanielRosenwasser) DanielRosenwasser approved these changes
@RyanCavanaugh Ryan Cavanaugh (RyanCavanaugh) RyanCavanaugh approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@jakebailey Jake Bailey (jakebailey)

Labels

Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug

Projects

PR Backlog
Status: Done

Milestone

TypeScript 6.0.3

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

5 participants

@jakebailey @typescript-bot @DanielRosenwasser @RyanCavanaugh
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.