Skip to content

Make package name scoped to @typescript #1902

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 6, 2025
Merged

Conversation

zombie
Copy link
Contributor

@zombie zombie commented Feb 3, 2025

Apparently this package name was name squatted on npm by a malicious actor: GHSA-5h3m-q8pm-rw64.

The issue is that anyone importing this package gets a "critical severity vulnerability" because of the package name. Making the package name scoped to @microsoft avoids any confusion today, and guards against any potential future npm substitution attacks.

@saschanaz
Copy link
Contributor

Makes sense to me but the merge should happen from @sandersn.

Note that users in general should use @types/web, but Mozilla is giving it's own browser IDL files to the generator and thus is importing the whole package.

Copy link
Member

@sandersn sandersn left a comment

Choose a reason for hiding this comment

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

Thanks for bringing this to our attention.

Co-authored-by: Nathan Shively-Sanders <[email protected]>
@zombie zombie changed the title Make package name scoped to @microsoft Make package name scoped to @typescript Feb 5, 2025
@zombie zombie closed this Feb 5, 2025
@zombie zombie reopened this Feb 5, 2025
@zombie
Copy link
Contributor Author

zombie commented Feb 5, 2025

Oops, pushed the wrong button.

I accepted the proposed change, and renamed the PR. This is now ready to be merged.

@sandersn sandersn merged commit 179bff0 into microsoft:main Feb 6, 2025
6 of 7 checks passed
@zombie zombie deleted the patch-1 branch February 7, 2025 00:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants