Skip to content
Heist/ feed
Back to feed
CriticalFix available

cpp-httplib — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2026-45372

cpp-httplib is a C++11 single-file header-only cross platform HTTP/HTTPS library. Prior to 0.44.0, when cpp-httplib's server parses an incoming request, it applies percent-decoding to every header value except Location and Referer. The validity check (is_field_value) is run before decoding, so encoded %0D%0A passes the check and is then expanded to a literal \r\n byte pair inside the stored header value. This vulnerability is fixed in 0.44.0.

Products
cpp-httplib
Affected versions
0.10.1+ds-1, 0.10.2+ds-1, 0.10.3+ds-1, 0.10.3+ds-1ubuntu0.1~esm1, 0.13.1+ds-1ubuntu1, 0.14.3+ds-1, 0.14.3+ds-1.1, 0.14.3+ds-1.1build1, 0.14.3+ds-1.1build2, 0.14.3+ds-1.1ubuntu0.1~esm1, 0.18.7-1, 0.18.7-1ubuntu0.25.10.1, 0.26.0+ds-2ubuntu2, 0.26.0+ds-2ubuntu3, 0.26.0+ds-2ubuntu4, 0.9.10+ds-1, 0.9.9+ds-1
Fixed versions
0.10.3+ds-1ubuntu0.1~esm2, 0.14.3+ds-1.1ubuntu0.1~esm2, 0.18.7-1ubuntu0.25.10.2, 0.26.0+ds-2ubuntu3+esm1
CVEs
CVE-2026-45372
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 02:14 UTC · Revision 1

Source evidence

UBUNTU-CVE-2026-45372

core-osv · Original source

Published 29 May 2026, 20:16 UTC

cpp-httplib is a C++11 single-file header-only cross platform HTTP/HTTPS library. Prior to 0.44.0, when cpp-httplib's server parses an incoming request, it applies percent-decoding to every header value except Location and Referer. The validity check (is_field_value) is run before decoding, so encoded %0D%0A passes the check and is then expanded to a literal \r\n byte pair inside the stored header value. This vulnerability is fixed in 0.44.0.

osv:UBUNTU-CVE-2026-45372

cpp-httplib

Fixed versions: 0.10.3+ds-1ubuntu0.1~esm2

cpp-httplib

Fixed versions: 0.14.3+ds-1.1ubuntu0.1~esm2

cpp-httplib

Fixed versions: 0.18.7-1ubuntu0.25.10.2

cpp-httplib

Fixed versions: Not specified

cpp-httplib

Fixed versions: 0.26.0+ds-2ubuntu3+esm1

Complete source record
{
  "id": "8a7a07324a701bb8484c9272e73dbce63ac25d02186a7373d9772abbb842d93a",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-45372",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2026-45372",
    "summary": "cpp-httplib is a C++11 single-file header-only cross platform HTTP/HTTPS library. Prior to 0.44.0, when cpp-httplib's server parses an incoming request, it applies percent-decoding to every header value except Location and Referer. The validity check (is_field_value) is run before decoding, so encoded %0D%0A passes the check and is then expanded to a literal \\r\\n byte pair inside the stored header value. This vulnerability is fixed in 0.44.0.",
    "evidence": "osv:UBUNTU-CVE-2026-45372",
    "products": [
      {
        "name": {
          "value": "cpp-httplib",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "0.10.3+ds-1ubuntu0.1~esm2",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "0.9.9+ds-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.9.10+ds-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.10.1+ds-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.10.2+ds-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.10.3+ds-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.10.3+ds-1ubuntu0.1~esm1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "cpp-httplib",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "0.14.3+ds-1.1ubuntu0.1~esm2",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "0.13.1+ds-1ubuntu1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "0.14.3+ds-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "0.14.3+ds-1.1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "0.14.3+ds-1.1build1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "0.14.3+ds-1.1build2",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "0.14.3+ds-1.1ubuntu0.1~esm1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "cpp-httplib",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "0.18.7-1ubuntu0.25.10.2",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "0.18.7-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "0.18.7-1ubuntu0.25.10.1",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "cpp-httplib",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.26.0+ds-2ubuntu3",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "0.26.0+ds-2ubuntu4",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "cpp-httplib",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "0.26.0+ds-2ubuntu3+esm1",
            "evidence": "/affected/4/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "0.18.7-1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "0.26.0+ds-2ubuntu2",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "0.26.0+ds-2ubuntu3",
            "evidence": "/affected/4/versions"
          }
        ]
      }
    ],
    "severity": "critical",
    "structured": {
      "id": "UBUNTU-CVE-2026-45372",
      "aliases": [
        "UBUNTU-CVE-2026-45372"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:H/A:L"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "0.10.3+ds-1ubuntu0.1~esm2"
                }
              ]
            }
          ],
          "package": {
            "name": "cpp-httplib",
            "purl": "pkg:deb/ubuntu/cpp-httplib?arch=source&distro=esm-apps%2Fjammy",
            "ecosystem": "Ubuntu:Pro:22.04:LTS"
          },
          "versions": [
            "0.9.9+ds-1",
            "0.9.10+ds-1",
            "0.10.1+ds-1",
            "0.10.2+ds-1",
            "0.10.3+ds-1",
            "0.10.3+ds-1ubuntu0.1~esm1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-45372.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libcpp-httplib0",
                "binary_version": "0.10.3+ds-1ubuntu0.1~esm2"
              }
            ],
            "availability": "Available with Ubuntu Pro: https://ubuntu.com/pro"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "0.14.3+ds-1.1ubuntu0.1~esm2"
                }
              ]
            }
          ],
          "package": {
            "name": "cpp-httplib",
            "purl": "pkg:deb/ubuntu/cpp-httplib?arch=source&distro=esm-apps%2Fnoble",
            "ecosystem": "Ubuntu:Pro:24.04:LTS"
          },
          "versions": [
            "0.13.1+ds-1ubuntu1",
            "0.14.3+ds-1",
            "0.14.3+ds-1.1",
            "0.14.3+ds-1.1build1",
            "0.14.3+ds-1.1build2",
            "0.14.3+ds-1.1ubuntu0.1~esm1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-45372.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libcpp-httplib0.14t64",
                "binary_version": "0.14.3+ds-1.1ubuntu0.1~esm2"
              }
            ],
            "availability": "Available with Ubuntu Pro: https://ubuntu.com/pro"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "0.18.7-1ubuntu0.25.10.2"
                }
              ]
            }
          ],
          "package": {
            "name": "cpp-httplib",
            "purl": "pkg:deb/ubuntu/cpp-httplib?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "0.18.7-1",
            "0.18.7-1ubuntu0.25.10.1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-45372.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libcpp-httplib0.18",
                "binary_version": "0.18.7-1ubuntu0.25.10.2"
              }
            ],
            "availability": "No subscription required"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "cpp-httplib",
            "purl": "pkg:deb/ubuntu/cpp-httplib?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "0.26.0+ds-2ubuntu3",
            "0.26.0+ds-2ubuntu4"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-45372.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libcpp-httplib0.26",
                "binary_version": "0.26.0+ds-2ubuntu4"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "0.26.0+ds-2ubuntu3+esm1"
                }
              ]
            }
          ],
          "package": {
            "name": "cpp-httplib",
            "purl": "pkg:deb/ubuntu/cpp-httplib?arch=source&distro=esm-apps%2Fresolute",
            "ecosystem": "Ubuntu:Pro:26.04:LTS"
          },
          "versions": [
            "0.18.7-1",
            "0.26.0+ds-2ubuntu2",
            "0.26.0+ds-2ubuntu3"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-45372.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libcpp-httplib0.26",
                "binary_version": "0.26.0+ds-2ubuntu3+esm1"
              }
            ],
            "availability": "Available with Ubuntu Pro: https://ubuntu.com/pro"
          }
        }
      ],
      "modified": "2026-10-17T12:58:23.099932583Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-45372"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2026-45372",
        "https://www.cve.org/CVERecord?id=CVE-2026-45372",
        "https://github.com/yhirose/cpp-httplib/security/advisories/GHSA-xjxg-64p4-vj4m",
        "https://github.com/yhirose/cpp-httplib/commit/fbb031ed8504a0e48d9ca63caecc0614c296f755",
        "https://ubuntu.com/security/notices/USN-8470-1"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-45372",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 358642,
  "published_at": "2026-05-29T20:16:00+00:00"
}