Skip to content
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

tsconfig-paths contains json5 vulnerability #2631

Closed
TannerS opened this issue Dec 31, 2022 · 8 comments
Closed

tsconfig-paths contains json5 vulnerability #2631

TannerS opened this issue Dec 31, 2022 · 8 comments
Labels

Comments

@TannerS
Copy link

TannerS commented Dec 31, 2022

I am seeing this with our team

├─┬ [email protected]
│ └─┬ [email protected]
│   └── [email protected]

for this vulnerability, GHSA-8cf7-32gw-wr33

now tsconfig-paths has a fix coming out, but there PR is for there major version 4.x (https://github.com/dividab/tsconfig-paths/pull/2320) while i noticed, the eslint-plugin-import library only allows "tsconfig-paths": "^3.14.1" which if i remember correctly, will not pull up the version 4.

is there anything that can be done?

@ljharb
Copy link
Member

ljharb commented Dec 31, 2022

json5 v1.0.2 has already been updated with this fix, and either way, it's not a valid vulnerability.

As is the case with almost every JS CVE, the best course of action is to do nothing until the ecosystem fixes it for you.

This is a duplicate of #2625; a duplicate of #2628; a duplicate of #2626; a duplicate of #2627.

@ljharb ljharb closed this as not planned Won't fix, can't repro, duplicate, stale Dec 31, 2022
@ljharb ljharb added the invalid label Dec 31, 2022
@TannerS
Copy link
Author

TannerS commented Dec 31, 2022 via email

@ljharb
Copy link
Member

ljharb commented Dec 31, 2022

I mean that the vulnerability is in the json5 package. tsconfig-paths happens to depend on that, and eslint-plugin-import happens to depend on tsconfig-paths.

The best place for the fix is the vulnerable package itself - luckily, the json5 maintainers published a fix on both the v1 and v2 lines. That means that there's nothing anybody has to do except update their lockfiles - no intermediate maintainers need to release updates, or need issues filed, etc.

@TannerS
Copy link
Author

TannerS commented Dec 31, 2022 via email

@ljharb
Copy link
Member

ljharb commented Dec 31, 2022

Yes, exactly - and json5 v1.0.2 is that fixed version, it's just that the audit warning hasn't been updated to reflect that yet.

@TannerS
Copy link
Author

TannerS commented Dec 31, 2022 via email

@ljharb
Copy link
Member

ljharb commented Dec 31, 2022

github/npm controls that. GIven that it's a holiday week, it probably won't happen until Monday.

@TannerS
Copy link
Author

TannerS commented Dec 31, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants