CVE-2026-23886: Github.com/swift otel/swift w3c trace context Swift W3C TraceContext Vulnerable To Vulnerability

MODERATE
Advisory Identifier: GHSA-mvpq-2v8x-ww6g
CVSS 5.3
CWE-20
Published
Advisory Summary

CVE-2026-23886 is a MODERATE (CVSS 5.3) swift w3c tracecontext vulnerable to vulnerability (CWE-20: Improper Input Validation) affecting Github.com/swift otel/swift w3c trace context libraries in the SwiftURL ecosystem. The issue involves swift w3c tracecontext vulnerable to a malformed http header causing a crash. Remediation is available by upgrading affected packages to version 1.0.0-beta.5, 1.0.4.

CVE-2026-23886 at a Glance

CVE Identifier CVE-2026-23886
GHSA Identifier GHSA-mvpq-2v8x-ww6g
Severity MODERATE
CVSS v3.1 Base Score 5.3
CWE Classification CWE-20: Improper Input Validation
Affected Product Github.com/swift otel/swift w3c trace context
Package Ecosystem SwiftURL
Published Date
Last Updated

Security Impact

CVSS: 5.3

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability Low (A:L)

How to Fix CVE-2026-23886

To remediate this vulnerability, upgrade all affected Github.com/swift otel/swift w3c trace context dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/swift-otel/swift-w3c-trace-context fixed: 1.0.0-beta.5
Upgrade github.com/swift-otel/swift-w3c-trace-context to 1.0.0-beta.5
github.com/swift-otel/swift-otel fixed: 1.0.4
Upgrade github.com/swift-otel/swift-otel to 1.0.4
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/swift-otel/swift-w3c-trace-context

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-23886, inspect your project dependencies for Github.com/swift otel/swift w3c trace context:

inspect dependencies for github.com/swift-otel/swift-w3c-trace-context

Analyze the terminal output to locate any version of Github.com/swift otel/swift w3c trace context in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.0.0-beta.5), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In Github.com/swift otel/swift w3c trace context, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact A denial-of-service vulnerability due to improper input validation allows a remote attacker to crash the service via a malformed HTTP header. Allows crashing the process with data coming from the network when used with, for example, an HTTP server. Most common way of using Swift W3C Trace Context is through Swift OTel. ### Patches https://github.com/swift-otel/swift-w3c-trace-context/commit/5da9b143ba6046734de3fa51dafea28290174e4e ### Workarounds Disable either Swift OTel or the code that extracts the trace information from an incoming header (such as a `TracingMiddleware`). ### References [Swift W3C TraceContext 1.0.0-beta.5](https://github.com/swift-otel/swift-w3c-trace-context/releases/tag/1.0.0-beta.5) [Swift OTel 1.0.4](https://github.com/swift-otel/swift-otel/releases/tag/1.0.4)

CVE-2026-23886 Affected Github.com/swift otel/swift w3c trace context Versions

2 component(s)
Fixed Versions:
1.0.0-beta.51.0.4
Product / Package Ecosystem Affected Versions Fixed Version
github.com/swift-otel/swift-w3c-trace-context
SwiftURL
< 1.0.0-beta.5
1.0.0-beta.5
github.com/swift-otel/swift-otel
SwiftURL
< 1.0.4
1.0.4

References

Frequently Asked Questions

What is CVE-2026-23886?
CVE-2026-23886 is a security vulnerability in Github.com/swift otel/swift w3c trace context involving Swift W3C TraceContext vulnerable to a malformed HTTP header causing a crash under CWE-20: Improper Input Validation.
Which Github.com/swift otel/swift w3c trace context versions are affected?
Affected versions include releases prior to 1.0.0-beta.5, 1.0.4 across affected packages: github.com/swift-otel/swift-w3c-trace-context, github.com/swift-otel/swift-otel.
What version fixes CVE-2026-23886?
Upgrading to 1.0.0-beta.5, 1.0.4 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/swift-otel/swift-w3c-trace-context affected?
Yes, github.com/swift-otel/swift-w3c-trace-context is affected in releases prior to 1.0.0-beta.5. Upgrade your dependency to 1.0.0-beta.5 or later.
Is github.com/swift-otel/swift-otel affected?
Yes, github.com/swift-otel/swift-otel is affected in releases prior to 1.0.4. Upgrade your dependency to 1.0.4 or later.
What is the CVSS score of CVE-2026-23886?
CVE-2026-23886 has a CVSS v3.1 base score of 5.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L.
What CWE is associated with CVE-2026-23886?
CVE-2026-23886 is classified under CWE-20: Improper Input Validation (The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.).
How can I check SwiftURL dependencies for CVE-2026-23886?
Run the dependency tree command: 'inspect dependencies for github.com/swift-otel/swift-w3c-trace-context'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-mvpq-2v8x-ww6g",
  "modified" : "2026-01-21T01:05:09Z",
  "published" : "2026-01-21T01:05:09Z",
  "aliases" : [ "CVE-2026-23886" ],
  "summary" : "Swift W3C TraceContext vulnerable to a malformed HTTP header causing a crash",
  "details" : "### Impact\n\nA denial-of-service vulnerability due to improper input validation allows a remote attacker to crash the service via a malformed HTTP header.\n\nAllows crashing the process with data coming from the network when used with, for example, an HTTP server. Most common way of using Swift W3C Trace Context is through Swift OTel.\n\n### Patches\n\nhttps://github.com/swift-otel/swift-w3c-trace-context/commit/5da9b143ba6046734de3fa51dafea28290174e4e\n\n### Workarounds\nDisable either Swift OTel or the code that extracts the trace information from an incoming header (such as a `TracingMiddleware`).\n\n### References\n\n[Swift W3C TraceContext 1.0.0-beta.5](https://github.com/swift-otel/swift-w3c-trace-context/releases/tag/1.0.0-beta.5)\n[Swift OTel 1.0.4](https://github.com/swift-otel/swift-otel/releases/tag/1.0.4)",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "SwiftURL",
      "name" : "github.com/swift-otel/swift-w3c-trace-context"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.0.0-beta.5"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "SwiftURL",
      "name" : "github.com/swift-otel/swift-otel"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.0.4"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/swift-otel/swift-w3c-trace-context/security/advisories/GHSA-mvpq-2v8x-ww6g"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-23886"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/swift-otel/swift-w3c-trace-context/commit/5da9b143ba6046734de3fa51dafea28290174e4e"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/swift-otel/swift-otel/releases/tag/1.0.4"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/swift-otel/swift-w3c-trace-context"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/swift-otel/swift-w3c-trace-context/releases/tag/1.0.0-beta.5"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-20" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-01-21T01:05:09Z",
    "nvd_published_at" : "2026-01-19T21:15:52Z"
  }
}