From 306715d62c286e6d59e8f31e08458ca99e5b84b7 Mon Sep 17 00:00:00 2001 From: harsh mahajan Date: Wed, 9 Sep 2026 18:38:01 +0530 Subject: [PATCH] fix(deps): bump faker past the arbitrary code execution advisory GHSA-qxc2-j82w-r537 covers @faker-js/faker <=10.4.0 and is rated high, so `bun audit --audit-level high` fails and takes the build job with it on every branch. The repo was on ^9.9.0; the fix landed in 10.6.0. faker is a runtime dependency here, not a dev one: src/lib/helpers/faker.ts ships in the console bundle and powers "generate fake data" in the databases UI. The advisory is specific to helpers.fake(), which this repo never calls, so the exposure was nil, but the audit gate does not read call sites. Nothing in src/ needed changing. Every one of the 20 faker APIs used keeps its v9 signature in the installed v10 typings, including location.latitude and location.longitude, which still return `number` and so still serialise correctly into the point and line column payloads. bun audit --audit-level high clean (18 remaining are moderate/low) bun run check 0 errors bun run test:unit 275/275 bun run build success --- bun.lock | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bun.lock b/bun.lock index dce7aa464..bb7153393 100644 --- a/bun.lock +++ b/bun.lock @@ -18,7 +18,7 @@ "@codemirror/search": "^6.7.0", "@codemirror/state": "^6.6.0", "@codemirror/view": "^6.43.0", - "@faker-js/faker": "^9.9.0", + "@faker-js/faker": "^10.6.0", "@lezer/highlight": "^1.2.3", "@plausible-analytics/tracker": "^0.4.5", "@popperjs/core": "^2.11.8", @@ -229,7 +229,7 @@ "@eslint/plugin-kit": ["@eslint/plugin-kit@0.4.1", "", { "dependencies": { "@eslint/core": "^0.17.0", "levn": "^0.4.1" } }, "sha512-43/qtrDUokr7LJqoF2c3+RInu/t4zfrpYdoSDfYyhg52rwLV6TnOvdG4fXm7IkSB3wErkcmJS9iEhjVtOSEjjA=="], - "@faker-js/faker": ["@faker-js/faker@9.9.0", "", {}, "sha512-OEl393iCOoo/z8bMezRlJu+GlRGlsKbUAN7jKB6LhnKoqKve5DXRpalbItIIcwnCjs1k/FOPjFzcA6Qn+H+YbA=="], + "@faker-js/faker": ["@faker-js/faker@10.6.0", "", {}, "sha512-3RQHgEtvL1Frl/d1cSreo7qhJ3Gk1OdNUai/CtZ8G+wYeRQnJih3s9xJ9/kgYekPQRdwgh0HXRPqMlzWGwivIQ=="], "@floating-ui/core": ["@floating-ui/core@1.7.5", "", { "dependencies": { "@floating-ui/utils": "^0.2.11" } }, "sha512-1Ih4WTWyw0+lKyFMcBHGbb5U5FtuHJuujoyyr5zTaWS5EYMeT6Jb2AuDeftsCsEuchO+mM2ij5+q9crhydzLhQ=="], diff --git a/package.json b/package.json index 98f6da5fb..42c480235 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ "@codemirror/search": "^6.7.0", "@codemirror/state": "^6.6.0", "@codemirror/view": "^6.43.0", - "@faker-js/faker": "^9.9.0", + "@faker-js/faker": "^10.6.0", "@lezer/highlight": "^1.2.3", "@plausible-analytics/tracker": "^0.4.5", "@popperjs/core": "^2.11.8",