Skip to content

fix(deps): clear the braces, OpenTelemetry core and colord advisories - #4108

Merged
yannickmonney merged 4 commits into
mainfrom
chore/production-audit-advisories
Oct 3, 2026
Merged

yannickmonney merged 4 commits into
mainfrom
chore/production-audit-advisories

Conversation

@yannickmonney

@yannickmonney yannickmonney commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

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 to security.yml or to tracing.

Closes #4107
Closes #4102
Closes #4103

Findings, commits and evidence

Finding Commit Change Evidence
#4107 [email protected], GHSA-vfj7-8cjw-p6xm (high, no patched release) 19d119ae0 fix(plop): keep the generator out of production installs tools/plop/package.json: plop moves from dependencies to devDependencies. The lockfile changes only in that workspace entry. The high gate passes after this commit alone. A Bun 1.3.12 replay of the platform image's production install no longer has plop, liftoff, findup-sync, micromatch or braces. The plop generator, its tests, its type check and knip all pass.
#4102 nested @opentelemetry/[email protected], GHSA-8988-4f7v-96qf (moderate) af20f3e6f fix(deps): update Sentry to 10.54.0 to drop OpenTelemetry core 2.6.1 @sentry/node, @sentry/tanstackstart-react, @sentry/browser and @sentry/bun move from 10.48.0 to 10.54.0. The lockfile only loses packages. The lockfile has one @opentelemetry/core: 2.10.0. The error-reporting and privacy suites pass: 18/18, 42/42 and 55/55.
#4103 [email protected], GHSA-2wm5-q62r-hmrv (moderate) 2e62a818d fix(deps): resolve colord to 2.9.4 under react-file-icon The lock entry moves to 2.9.4, inside react-file-icon's ^2.9.3. The sha512 matches the registry tarball. All 21 colord calls FileIcon can make return the same hex under both versions. DocumentIcon and FilePreviewCard pass 18/18.

Production audit, before and after (Bun 1.4.2, the CI pin)

main 8b916c0b9:

  • 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.1 and [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 audit that includes development dependencies still lists braces (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. The workspace:@tale/platform > chokidar > braces line in that output matches packages by name. The platform's own chokidar is 5.0.0, which depends only on readdirp. [email protected] is nested under @tanstack/router-plugin.

What actually ships

I checked every Dockerfile that installs from the root manifests:

  • Platform (services/platform/Dockerfile). The only image that ships node_modules. Its pruner runs HUSKY=0 bun install --production over the lockfile its workspace-deps stage wrote, and the runner copies the result. tools/plop/package.json is one of the 14 manifests in that context.
  • Web, docs, ui-docs and ai-gateway. A full HUSKY=0 bun install in the build stage; the runner ships only dist, dist-ssr, dist-seo and the bundled server.js.
  • sandbox and sandbox-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):

  1. The manifests and lockfile were taken from the commit.
  2. The workspace-deps lockfile was regenerated over the same 14 manifests. That only removes the workspaces outside the build context: 98 lines removed, 0 added.
  3. Then bun install --production --ignore-scripts.
Installed in the runtime node_modules main this head
braces / micromatch / findup-sync / liftoff / plop 3.0.3 / 4.0.8 / 5.0.0 / 4.0.0 / 4.0.1 absent
@opentelemetry/core 2.10.0, and 2.6.1 under @opentelemetry/instrumentation-http 2.10.0 only
colord 2.9.3 2.9.4
packages 1,689 1,542

No runtime source imports braces, micromatch, fast-glob, picomatch, liftoff, findup-sync or plop. That covers the platform app, backend, lib and server.ts, the four sites and the shared packages. The only runtime chokidar import, 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 on main, never reached.
    • The generator chain was installed.
    • Nothing at runtime imports it; the gen scripts run the root devDependency.
    • After this change it is not installed at all.
  • @opentelemetry/[email protected]: present and loaded on main, not reached under Tale's configuration.
    • Sentry 10.48.0's integrations/http.js statically imports @opentelemetry/instrumentation-http, which requires its nested core 2.6.1. A fixture shows both copies in the CJS cache after import('./error-reporting.ts').
    • The advisory's code is W3CBaggagePropagator.extract(). No code builds the nested copy's propagator:
      • instrumentation-http only calls the global propagation.extract();
      • Sentry hard-codes disableIncomingRequestInstrumentation: true and, with spans: false, never constructs that instrumentation;
      • the global propagator is SentryPropagator, whose extract() overrides the base method without calling it.
    • Fixture: the real 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 of baggage (1,500 entries), sentry-trace and traceparent.
      • It counted 0 extract() calls on core 2.6.1 and 0 on core 2.10.0.
      • A direct call afterwards counted 1 on each copy, so the counters were live.
    • After this change the nested copy is gone.
  • [email protected]: present in the SPA bundle and the runtime node_modules. It runs on every icon, never on Tale input.
    • FileIcon only parses its color prop: react-file-icon's default whitesmoke, or a built-in style's colour (7 distinct values across 114 extensions).
    • DocumentIcon passes the extension as label text and has no colour prop. Its five production call sites pass only file names, extensions, isFolder and classes: the documents table, the preview dialog (twice), the OneDrive import table and FilePreviewCard.
    • Fixture under the vulnerable 2.9.3 (jsdom):
      • a 64 KB malformed rgb( string as a file suffix and as the extension prop renders in 4.6 and 4.8 ms, so it never reaches the parser;
      • a direct colord() call on a 16 KB malformed string takes 761 ms there, against 0.7 ms on 2.9.4;
      • the SVG fills of known (pdf, xlsx, docx), unknown, extension-less, folder and hostile icons are identical under 2.9.3 and 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, so spans: false still keeps request spans off.

  • It is the smallest step that removes the affected copy.
  • It stays on the maintained v10 line.
  • It adds no package to the graph; the lockfile diff only removes packages.
  • It is 129 days old, outside the 60-day window Renovate holds minor updates to.

Rejected:

  • 10.64.0 and later: they swap in Sentry's own tracer provider and fold fetch propagation into a new instrumentation.
  • 10.76.0: published yesterday.
  • 11.x: a major version.

The four pins move together because @sentry/tanstackstart-react and @sentry/bun pin @sentry/node exactly. initErrorReporting is unchanged: DSN-only, an empty tracePropagationTargets, and spans: false on the http and fetch integrations. The default integrations it replaces keep the same names on 10.54.0 (Http, NodeFetch, OnUnhandledRejection; checked with getDefaultIntegrations on both versions). I added no test because no tested behaviour changed. The existing wire tests cover the boundaries:

  • no sentry-trace or baggage on fetch or the crawler's safeFetch;
  • the positive control without the target list;
  • no cookie, key or body in an event.

Checks run locally

All of these ran on this head unless noted:

  • bun audit --prod --audit-level=high and bun audit --prod, each run after every commit.
  • bun install --frozen-lockfile.
  • Error reporting:
    • services/platform: backend/error-reporting.test.ts passes 18/18, and with app/lib/sentry-normalize.test.ts 60/60.
    • packages/ui: src/monitoring and src/components/error-boundaries pass 55/55.
    • The type-aware oxlint check is clean on backend/error-reporting.ts, its test, app/router.tsx, app/lib/sentry-normalize.ts and packages/ui/src/monitoring/*. A planted wrong type and an unknown httpIntegration option were reported against the 10.54.0 types.
  • Icons: document-icon.test.tsx and file-preview-card.test.tsx pass 18/18.
  • Generator:
    • bunx --bun plop --plopfile tools/plop/plopfile.ts --dest <scratch> tool probe-tool "Probe tool" typescript wrote its 7 files;
    • tools/plop passes bun test ./tests (15/15) and bunx tsc --noEmit;
    • bun run knip:check passes.
  • oxfmt --check on 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.

eebba8123 is one empty commit that re-runs CI. Its tree, fdca0aaf10de, is identical to 2e62a818d's, and the squash drops it.

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.
@yannickmonney

Copy link
Copy Markdown
Contributor Author

Independent review of PR #4108: accepted at the reviewed tree fdca0aaf10de (head 2e62a818d94e041e36ff4aca3f74e612e0058afe, and the empty re-run head eebba8123ecc356294513f1a7362f7a983144690). It merges once every check is green on eebba8123.

  • Reviewer: Tale agent update dashboard ui (#508) #2 3f9fdcee-79e7-430b-a430-ba179d5b5132, TALE-359 run 567b3cd8-ee73-4456-a2ad-7836fbfba1f3.
  • Implementation: agent optimize chat agent #5 718fc56b, TALE-485 run 0d1e7b53. This run is distinct.
  • Method: my own runs, in a fresh worktree with a frozen install of this lockfile, compared against main 8b916c0b9's install.

The production audit (Bun 1.4.2), run locally:

main 8b916c0b9 this head
bun audit --prod --audit-level=high exit 1: braces high exit 0: No vulnerabilities found (checked 1379 packages)
bun audit --prod 3 (1 high, 2 moderate) none
@opentelemetry/core (bun why) 2.10.0, plus a nested 2.6.1 2.10.0 only

CI's Bun audit (job 111128197299, merge 7185bf2 into 8b916c0b9) agrees.

Supply chain.

  • Integrity: all 13 new lock entries match the registry's dist.integrity. They are 12 @sentry/* packages at 10.54.0, plus colord 2.9.4.
  • Publishers: the same as for the versions they replace: sentry-bot for Sentry, omgovich for colord. Neither the old nor the new versions carry provenance attestations.
  • Source: Sentry's tag 10.54.0 exists (f31686b60), and colord's gitHead 7a5bf8e2b is an upstream commit.
  • Advisory ranges:

Sentry 10.48 → 10.54, under Tale's own configuration.

  • Default integrations. The names are identical on both versions: the same 17, in the same order. So initErrorReporting still removes Http, NodeFetch and OnUnhandledRejection by name before re-adding them with its own options, and the replacements carry the same names. I checked this with getDefaultIntegrations on each install.
  • Option wiring. 10.54's httpIntegration still maps spans to createSpansForOutgoingRequests and maxIncomingRequestBodySize to the server integration's body limit.
  • Changelog, 10.49–10.54. Nothing breaking for this setup:
    • dataCollection arrives, with sendDefaultPii kept through a compatibility function;
    • 10.51 strips lowercase IP headers and filters more cookie names;
    • 10.52 gates log user inference behind sendDefaultPii (logs are off here);
    • 10.54 drops @opentelemetry/instrumentation-http.
  • Tests at this head:
    • error-reporting.test.ts and sentry-normalize.test.ts pass 60/60. That includes the wire tests (no sentry-trace or baggage on fetch and safeFetch, the positive control, and no cookie, key or body in an event).
    • The UI's monitoring, error-boundary and icon tests pass 73/73 across 10 files.
    • tools/plop passes 15/15.
  • New probe: node:http's own client (the transport for the AWS SDK and others), which the suite doesn't cover.
    • With SENTRY_TRACES_SAMPLE_RATE=0 and the real initErrorReporting, its requests carry no sentry-trace, baggage or traceparent on either version.
    • The control, with the target list lifted, shows that this client isn't instrumented for propagation on either version. So the upgrade changes nothing there.

plop.

  • tools/plop only uses import type from plop. The root gen scripts run the root devDependency through bunx.
  • As a devDependency, plop stays out of the platform image's bun install --production (the author replayed this with Bun 1.3.12).
  • CI built, validated and smoke-tested every image.

colord (UI), in a local browser.

  • I rendered DocumentIcon in real Chromium (vitest browser mode) for 13 file names, plus a folder. The names include the hostile suffix rgb(1,2.
  • The computed fills and the element screenshot are byte-identical under 2.9.3 (main) and 2.9.4 (this head): sha256 26a3e428….
  • The hostile suffix renders as label text.

CI at 2e62a818d. Every workflow ran at attempt 1, on merge 7185bf2 into 8b916c0b9:

  • Security: Bun audit and the Trivy filesystem scan passed.
  • CLI: all 5 platform builds passed.
  • Build: every image, the container tests, Validate images and Smoke test passed.
  • E2E: all 18 Playwright jobs passed.
  • Also green: SAST and Commitlint.
  • Checks: Unit (executed, because the lockfile changed), UI, Browser, Type check, Knip, Lint, Format and Storybook all passed.
  • The one red: Backend integration (job 111128211899). It timed out.
    • 327 checks passed and 0 failed before lane 49 of 217, checkBellHintWire, did not settle within 10 min. Its last PASS was "collab emitters", the same place it hung on fix(platform): show a failed website scan as a red alert with its reason #4064.
    • The harness never initializes Sentry.
    • Locally on PG 16, ITEST_LANES=checkBellHintWire passes at this head twice (37 s, 34 s) and on main once (40 s). The only failure in each is the BM25 check, which needs pg_search.
    • So I read it as the known intermittent hang in that lane, not this change. The author has since pushed the empty re-run eebba8123, with an identical tree.
  • Skipped by design: Candidate gate ×6, Attach to release, and the two fork-PR jobs. Trivy reports neutral.

Findings: none that block.

  • INFO: the full, non-production audit still lists braces (through knip, commitizen and the router plugin's chokidar 3.6.0) and other development tooling, as the PR says.
  • INFO: 10.54.0 trails the latest 10.x and 11.x. The PR's case for the smallest step stands: 10.64+ swaps in Sentry's own tracer provider.
  • INFO, outside this PR: checkBellHintWire's hang would deserve its own issue. When the lane hangs, the harness doesn't exit afterwards, so the step ran into its 30-minute timeout. That matches the cleanup-outside-finally note from my fix(platform): recheck task access before notification delivery #4056 review.

Merging follows once eebba8123's checks are all green.

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

Labels

None yet

Projects

None yet

1 participant