{
  "id": "CVE-2026-33745",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-33745",
  "published_at": "2026-03-27T00:46:48.941Z",
  "title": "cpp-httplib Client Leaks Authentication Credentials to Untrusted Hosts on Cross-Origin HTTP Redirect",
  "vendor": "yhirose",
  "product": "cpp-httplib",
  "cvss": {
    "score": 7.4,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "cpp-httplib is a C++11 single-file header-only cross platform HTTP/HTTPS library. Prior to 0.39.0, the cpp-httplib HTTP client forwards stored Basic Auth, Bearer Token, and Digest Auth credentials to arbitrary hosts when following cross-origin HTTP redirects (301/302/307/308). A malicious or compromised server can redirect the client to an attacker-controlled host, which then receives the plaintext credentials in the `Authorization` header. Version 0.39.0 fixes the issue.",
  "cwe": "CWE-200",
  "cpes": [
    "cpe:2.3:a:yhirose:cpp-httplib:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.4,
    "nvd": 7.4
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "yhirose",
        "product": "cpp-httplib",
        "ranges": [
          "\u003c 0.39.0"
        ],
        "fixed_in": [
          "0.39.0"
        ]
      }
    ],
    "upgrade": [
      "Upgrade cpp-httplib to 0.39.0 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/yhirose/cpp-httplib/security/advisories/GHSA-6hrp-7fq9-3qv2"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
