Skip to content

Commit ee2acd5

Browse files
authored
fix: bump @microsoft/api-extractor to fix security vulnerabilities (#462)
Upgrades `@microsoft/api-extractor` from `^7.52.9` to `^7.57.0` in both the root and `packages/vite-plugin-dts` devDependencies. The old version pulled in vulnerable transitive deps: - minimatch@~3.0.3 (CVE: GHSA-7r86-cg39-jmmj, GHSA-3ppc-4f35-3m26) - lodash@~4.17.15 (CVE: GHSA-xxjr-mmjv-4gpg) - ajv@<8.18.0 via @microsoft/tsdoc-config (CVE: GHSA-2g4f-4pwh-qvx6) `@microsoft/api-extractor@7.57.x` switched to minimatch@10.x and lodash@~4.17.23, resolving all three vulnerability chains. Adds `pnpm.overrides` to force: - `@microsoft/api-extractor@<7.57.6` → 7.57.6 (covers peer dep resolution in packages/unplugin-dts which declares `>=7`) - `minimatch@>=10.0.0 <10.2.3` → 10.2.4 (api-extractor 7.57.x uses minimatch@10.2.1 which itself has a ReDoS fix in >=10.2.3)
1 parent 179aa30 commit ee2acd5

3 files changed

Lines changed: 210 additions & 197 deletions

File tree

package.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"@commitlint/cli": "^19.8.0",
3333
"@commitlint/types": "^19.8.0",
3434
"@eslint/js": "^9.31.0",
35-
"@microsoft/api-extractor": "^7.52.9",
35+
"@microsoft/api-extractor": "^7.57.0",
3636
"@rspack/core": "^1.3.9",
3737
"@types/debug": "^4.1.12",
3838
"@types/minimist": "^1.2.5",
@@ -66,5 +66,11 @@
6666
"vite": "^6.3.3",
6767
"vitest": "^3.1.2",
6868
"webpack": "^5.100.2"
69+
},
70+
"pnpm": {
71+
"overrides": {
72+
"@microsoft/api-extractor@<7.57.6": "7.57.6",
73+
"minimatch@>=10.0.0 <10.2.3": "10.2.4"
74+
}
6975
}
7076
}

packages/vite-plugin-dts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"unplugin-dts": "workspace:*"
5454
},
5555
"devDependencies": {
56-
"@microsoft/api-extractor": "^7.52.5"
56+
"@microsoft/api-extractor": "^7.57.0"
5757
},
5858
"peerDependencies": {
5959
"@microsoft/api-extractor": ">=7",

0 commit comments

Comments
 (0)