Repository navigation
fix(deps): clear the braces, OpenTelemetry core and colord advisories - #4108
Merged
Merged
Conversation
The production Bun audit failed on braces 3.0.3 (GHSA-vfj7-8cjw-p6xm, high, no patched release). Its one production path was the generator workspace: @tale/plop listed plop under dependencies, so plop -> liftoff -> findup-sync -> micromatch -> braces counted as production. It also shipped: the platform image's pruner runs `bun install --production` with tools/plop/package.json present, and a Bun 1.3.12 replay of that stage puts plop and braces into the runtime node_modules. The workspace only imports plop's types; the `gen` scripts run the root devDependency. Declaring it a devDependency drops the chain from production installs and the production audit, with no ignore entry. The remaining braces paths (knip, commitizen, the router plugin's chokidar 3) are root development tooling.
@sentry/node 10.48.0 depended on @opentelemetry/instrumentation-http 0.214.0, which pins @opentelemetry/core 2.6.1 exactly. That nested copy is in the affected range of GHSA-8988-4f7v-96qf (unbounded W3C baggage parsing, fixed in 2.8.0); the hoisted copy is already 2.10.0. 10.54.0 is the first release without that dependency (getsentry/sentry-javascript#21113): its HTTP integration is Sentry's own diagnostics-channel instrumentation. It is the smallest step that removes the copy, stays on the v10 line, adds no package to the graph, and is older than the 60-day window Renovate holds minor updates to. The four Sentry pins move together: @sentry/tanstackstart-react and @sentry/bun pin @sentry/node exactly, so a lone bump would keep 10.48.0 nested. No override and no tracing change. initErrorReporting keeps its DSN-only init, the empty tracePropagationTargets list and spans: false on the http and fetch integrations. The default integrations it replaces keep their names (Http, NodeFetch, OnUnhandledRejection), and the existing wire tests still hold.
react-file-icon 1.6.0 depends on colord ^2.9.3, and the lockfile held 2.9.3, inside GHSA-2wm5-q62r-hmrv (quadratic rejection of long malformed color strings, fixed in 2.9.4). 2.9.4 is in that range, so only the lock entry moves; no manifest and no override. 2.9.4 changes nothing but the number pattern the advisory names. Its entry points are unchanged, and every colord call FileIcon makes (darken 0.1, 0.3 and 0.15 of the default and the 114 built-in styles' colors) returns the same hex under 2.9.3 and 2.9.4, so DocumentIcon renders the same fills.
Backend integration on 2e62a81 stopped at lane 49 of 217: "checkBellHintWire did not settle within 10 min", then the 30-minute step timeout (job 111128211899). The same hang, at the same lane, failed #4094 (run 37056656989) and #4097 (run 37086605668), neither of which changes a dependency. The integration run sets no SENTRY_DSN, and importing @sentry/node 10.48.0 or 10.54.0 without init subscribes to no diagnostics channel and patches nothing in node:http or fetch. No code change.
Contributor
Author
|
Independent review of PR #4108: accepted at the reviewed tree
The production audit (Bun 1.4.2), run locally:
CI's Bun audit (job 111128197299, merge Supply chain.
Sentry 10.48 → 10.54, under Tale's own configuration.
plop.
colord (UI), in a local browser.
CI at
Findings: none that block.
Merging follows once |
This was referenced Oct 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Clears the three advisories the production Bun audit reports on
main(8b916c0b9). The high one,braces, fails Security on every lockfile pull request and on the next release candidate. It is fixed in one commit per finding, with no ignore entry, no override, and no change tosecurity.ymlor to tracing.Closes #4107
Closes #4102
Closes #4103
Findings, commits and evidence
[email protected], GHSA-vfj7-8cjw-p6xm (high, no patched release)19d119ae0fix(plop): keep the generator out of production installstools/plop/package.json:plopmoves fromdependenciestodevDependencies. The lockfile changes only in that workspace entry.plop,liftoff,findup-sync,micromatchorbraces. The plop generator, its tests, its type check and knip all pass.@opentelemetry/[email protected], GHSA-8988-4f7v-96qf (moderate)af20f3e6ffix(deps): update Sentry to 10.54.0 to drop OpenTelemetry core 2.6.1@sentry/node,@sentry/tanstackstart-react,@sentry/browserand@sentry/bunmove from 10.48.0 to 10.54.0. The lockfile only loses packages.@opentelemetry/core: 2.10.0. The error-reporting and privacy suites pass: 18/18, 42/42 and 55/55.[email protected], GHSA-2wm5-q62r-hmrv (moderate)2e62a818dfix(deps): resolve colord to 2.9.4 under react-file-icon^2.9.3.Production audit, before and after (Bun 1.4.2, the CI pin)
main8b916c0b9:bun audit --prod --audit-level=high:1 vulnerability (1 high), exit 1.bun audit --prod:3 vulnerabilities (1 high, 2 moderate): braces,@opentelemetry/[email protected], 2.6.1and[email protected].This head,
2e62a818d:bun audit --prod --audit-level=high:No vulnerabilities found (checked 1379 packages), exit 0.bun audit --prod:No vulnerabilities found (checked 1379 packages), exit 0.bun install --frozen-lockfile: no change.A full
bun auditthat includes development dependencies still listsbraces(through knip, commitizen and the router plugin's[email protected]),@faker-js/faker(the prism mock server) and@vitest/mocker. All are development tooling outside the production gate, as before. Theworkspace:@tale/platform > chokidar > bracesline in that output matches packages by name. The platform's ownchokidaris 5.0.0, which depends only onreaddirp.[email protected]is nested under@tanstack/router-plugin.What actually ships
I checked every Dockerfile that installs from the root manifests:
services/platform/Dockerfile). The only image that shipsnode_modules. Its pruner runsHUSKY=0 bun install --productionover the lockfile itsworkspace-depsstage wrote, and the runner copies the result.tools/plop/package.jsonis one of the 14 manifests in that context.HUSKY=0 bun installin the build stage; the runner ships onlydist,dist-ssr,dist-seoand the bundledserver.js.sandboxandsandbox-runtime. They install from their own lockfiles (services/sandbox/bun.lock, the skill's own manifest). Neither contains any of the three packages.The platform pruner was replayed without Docker, with the image's Bun 1.3.12 (checksum and Robobun signature verified):
workspace-depslockfile was regenerated over the same 14 manifests. That only removes the workspaces outside the build context: 98 lines removed, 0 added.bun install --production --ignore-scripts.node_modulesmainbraces/micromatch/findup-sync/liftoff/plop@opentelemetry/core@opentelemetry/instrumentation-httpcolordNo runtime source imports
braces,micromatch,fast-glob,picomatch,liftoff,findup-syncorplop. That covers the platform app, backend, lib andserver.ts, the four sites and the shared packages. The only runtimechokidarimport,lib/config-watcher.ts, gets 5.0.0.Reachability: present versus reached
Each finding below says what was present and whether its affected code is reached. I used only source reading and local synthetic fixtures. There was no production probe.
braces: present in the platform runtime image onmain, never reached.genscripts run the root devDependency.@opentelemetry/[email protected]: present and loaded onmain, not reached under Tale's configuration.integrations/http.jsstatically imports@opentelemetry/instrumentation-http, which requires its nested core 2.6.1. A fixture shows both copies in the CJS cache afterimport('./error-reporting.ts').W3CBaggagePropagator.extract(). No code builds the nested copy's propagator:instrumentation-httponly calls the globalpropagation.extract();disableIncomingRequestInstrumentation: trueand, withspans: false, never constructs that instrumentation;SentryPropagator, whoseextract()overrides the base method without calling it.initErrorReporting(DSN to a local fake ingest,SENTRY_TRACES_SAMPLE_RATE=0) behind@hono/node-server, with five inbound requests each carrying 15,779 bytes ofbaggage(1,500 entries),sentry-traceandtraceparent.extract()calls on core 2.6.1 and 0 on core 2.10.0.[email protected]: present in the SPA bundle and the runtimenode_modules. It runs on every icon, never on Tale input.colorprop: react-file-icon's defaultwhitesmoke, or a built-in style's colour (7 distinct values across 114 extensions).isFolderand classes: the documents table, the preview dialog (twice), the OneDrive import table and FilePreviewCard.rgb(string as a file suffix and as theextensionprop renders in 4.6 and 4.8 ms, so it never reaches the parser;colord()call on a 16 KB malformed string takes 761 ms there, against 0.7 ms on 2.9.4;Why Sentry 10.54.0
10.54.0 is the first release without
@opentelemetry/instrumentation-http(getsentry/sentry-javascript#21113). Its HTTP integration is Sentry's own diagnostics-channel instrumentation, sospans: falsestill keeps request spans off.Rejected:
The four pins move together because
@sentry/tanstackstart-reactand@sentry/bunpin@sentry/nodeexactly.initErrorReportingis unchanged: DSN-only, an emptytracePropagationTargets, andspans: falseon the http and fetch integrations. The default integrations it replaces keep the same names on 10.54.0 (Http,NodeFetch,OnUnhandledRejection; checked withgetDefaultIntegrationson both versions). I added no test because no tested behaviour changed. The existing wire tests cover the boundaries:sentry-traceorbaggageonfetchor the crawler'ssafeFetch;Checks run locally
All of these ran on this head unless noted:
bun audit --prod --audit-level=highandbun audit --prod, each run after every commit.bun install --frozen-lockfile.services/platform:backend/error-reporting.test.tspasses 18/18, and withapp/lib/sentry-normalize.test.ts60/60.packages/ui:src/monitoringandsrc/components/error-boundariespass 55/55.backend/error-reporting.ts, its test,app/router.tsx,app/lib/sentry-normalize.tsandpackages/ui/src/monitoring/*. A planted wrong type and an unknownhttpIntegrationoption were reported against the 10.54.0 types.document-icon.test.tsxandfile-preview-card.test.tsxpass 18/18.bunx --bun plop --plopfile tools/plop/plopfile.ts --dest <scratch> tool probe-tool "Probe tool" typescriptwrote its 7 files;tools/ploppassesbun test ./tests(15/15) andbunx tsc --noEmit;bun run knip:checkpasses.oxfmt --checkon the three manifests, plus lint-staged and commitlint on each commit.Left to CI: the whole-workspace suites and type check, Backend integration (owed because the lockfile changed), the image builds and their container tests, E2E, SAST and Security. I ran no browser look at the icons. The fill comparison above stands in for it.
CI re-run
The first Backend integration on
2e62a818d(job 111128211899) stopped at lane 49 of 217:checkBellHintWire did not settle within 10 min, then the 30-minute step timeout. Every other check passed.SENTRY_DSN. Importing@sentry/node10.48.0 or 10.54.0 without init subscribes to no http or undici diagnostics channel and patches nothing innode:http,node:httpsorfetch.eebba8123is one empty commit that re-runs CI. Its tree,fdca0aaf10de, is identical to2e62a818d's, and the squash drops it.