Skip to content

Commit 69fa84d

Browse files
authored
Merge pull request #1195 from BitterSecurity/fix/opentelemetry-traceparent-cve-20261114
fix(deps): patch OpenTelemetry traceparent parsing CVE
2 parents 1b1c245 + 11fdc46 commit 69fa84d

3 files changed

Lines changed: 41 additions & 38 deletions

File tree

‎CHAGELOG.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ Keep proposed and unmerged changes out of released sections.
1515

1616
## [Unreleased]
1717

18+
- Proposed [OpenTelemetry trace-context dependency fix #1195](https://github.com/BitterSecurity/Decepticon/pull/1195), not released: require `opentelemetry-api>=1.45.2` in the base install and update the coherent eleven-package OpenTelemetry lock cohort to 1.45.2/0.66b2. Fixes [CVE-2026-126360 / GHSA-mf5v-w3w3-f6cg](https://github.com/open-telemetry/opentelemetry-python/security/advisories/GHSA-mf5v-w3w3-f6cg), where malformed untrusted trace context can cause excessive parsing time. Existing telemetry checks: 10 passed, zero skipped; actual patched propagator preserves valid trace context and rejects three oversized malformed inputs (up to 1,000,057 bytes) in under 1 ms each. Full 191-distribution lock audit reports zero known findings, without adding exclusions. The paired SDK patch also introduces metric-cardinality bounds; no model, provider, sandbox policy or tracing destination is changed. This Python dependency fix is separate from the user-deferred Agent Server Go finding.
19+
1820
- Added [reuse the asset inventory in the scope wizard #1193](https://github.com/BitterSecurity/Decepticon/pull/1193), not released. Wires the postgres asset inventory (#1192) into engagement scope entry (create + draft-edit): the picker opens it best-effort and `collectScope` reuses remembered assets for the seed zone (`Lookup`), still runs the live passive query, records this run's finds (`Record`), and shows the union (remembered ∪ live, deduped) as suggestions. So prior lookups are reused across engagements instead of re-querying every time. `start.go` builds the DSN from `POSTGRES_PORT`/`POSTGRES_PASSWORD`; every inventory call is nil-safe so a down stack degrades to live-only. Verified on sec-dev (`go build`/`vet`/`test` green; `mergeRecommendations` unit-tested). Follow-up: passive-discovery depth (seed expansion).
1921

2022
- Added [postgres-backed asset inventory (storage layer) #1192](https://github.com/BitterSecurity/Decepticon/pull/1192), not released. New `internal/inventory` remembers passive scope-discovery results across engagements (CTEM asset inventory) so the launcher can reuse prior lookups instead of re-querying CT / passive DNS every time. Wraps the stack postgres (published on `127.0.0.1`) via `pgx/v5`: best-effort `Open` (fails cleanly when the stack isn't up — common on a first run, since the scope phase precedes `compose up`), `ensureSchema` (`decepticon_asset_inventory`), `Record` (upsert hosts per zone) and `Lookup`; a nil store is a valid no-op. Verified with unit tests + a guarded live integration test (`INVENTORY_TEST_DSN`) against a real postgres (schema, upsert, zone isolation). Wiring into the scope wizard follows separately. Adds `github.com/jackc/pgx/v5`.

‎packages/decepticon/pyproject.toml‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@ dependencies = [
8888
"cryptography>=50.0.0",
8989
"starlette>=1.3.1",
9090
"langchain>=1.4.7,<2",
91+
# CVE-2026-126360: bound untrusted traceparent parsing before regex matching.
92+
# Also required transitively by Agent Server, even without telemetry extra.
93+
"opentelemetry-api>=1.45.2",
9194
]
9295

9396
[project.optional-dependencies]
@@ -98,7 +101,6 @@ dependencies = [
98101
# imports and runs everything except the KG graph tools.
99102
neo4j = ["neo4j>=6,<7"]
100103
telemetry = [
101-
"opentelemetry-api>=1.27",
102104
"opentelemetry-sdk>=1.27",
103105
"opentelemetry-exporter-otlp>=1.27",
104106
]

0 commit comments

Comments
 (0)