Skip to content

chore(deps): override tmp to patch vulnerability#1820

Merged
jcscottiii merged 1 commit intomainfrom
jcscottiii/fix-vuln-2025-09-10-npm
Sep 10, 2025
Merged

chore(deps): override tmp to patch vulnerability#1820
jcscottiii merged 1 commit intomainfrom
jcscottiii/fix-vuln-2025-09-10-npm

Conversation

@jcscottiii
Copy link
Collaborator

@jcscottiii jcscottiii commented Sep 10, 2025

A vulnerability in the tmp package (GHSA-52f5-9888-hmc6) was detected by npm audit. This change introduces an override in package.json to force the use of the patched version 0.2.4, as a direct update is not possible through the dependency chain.

This resolves the vulnerability without requiring any code changes.

This was created because dependabot kept failing to create a patch to fix this.

A vulnerability in the `tmp` package (GHSA-52f5-9888-hmc6) was detected by `npm audit`. This change introduces an override in `package.json` to force the use of the patched version `0.2.4`, as a direct update is not possible through the dependency chain.

This resolves the vulnerability without requiring any code changes.
@jcscottiii
Copy link
Collaborator Author

jcscottiii commented Sep 10, 2025

Prompt I used:

If you run npm audit, you'll find a vulnerability for tmp. There's no straight forward way to patch it. But I think we can override it to the patch version. Can you attempt, verify that there are no vulns afterwards and then create a commit message. I'm already on a new branch.

@jcscottiii jcscottiii added this pull request to the merge queue Sep 10, 2025
Merged via the queue into main with commit 7672d9b Sep 10, 2025
7 checks passed
@jcscottiii jcscottiii deleted the jcscottiii/fix-vuln-2025-09-10-npm branch September 10, 2025 21:41
@jcscottiii jcscottiii mentioned this pull request Sep 18, 2025
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.

2 participants