Skip to content
Heist/ feed
Back to feed
High

ESPAsyncWebServer Vulnerable to CRLF Injection in AsyncWebHeader.cpp

Type: advisorySources: OSV

ESPAsyncWebServer is an asynchronous HTTP and WebSocket server library for ESP32, ESP8266, RP2040 and RP2350. In versions up to and including 3.7.8, a CRLF (Carriage Return Line Feed) injection vulnerability exists in the construction and output of HTTP headers within `AsyncWebHeader.cpp`. Unsanitized input allows attackers to inject CR (`\r`) or LF (`\n`) characters into header names or values, leading to arbitrary header or response manipulation. Manipulation of HTTP headers and responses can enable a wide range of attacks, making the severity of this vulnerability high. A fix is available at pull request 211 and is expected to be part of version 3.7.9.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2025-53094
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 16:33 UTC · Revision 1

Source evidence

ESPAsyncWebServer Vulnerable to CRLF Injection in AsyncWebHeader.cpp

core-osv · Original source

Published 27 Jun 2025, 19:57 UTC

ESPAsyncWebServer is an asynchronous HTTP and WebSocket server library for ESP32, ESP8266, RP2040 and RP2350. In versions up to and including 3.7.8, a CRLF (Carriage Return Line Feed) injection vulnerability exists in the construction and output of HTTP headers within `AsyncWebHeader.cpp`. Unsanitized input allows attackers to inject CR (`\r`) or LF (`\n`) characters into header names or values, leading to arbitrary header or response manipulation. Manipulation of HTTP headers and responses can enable a wide range of attacks, making the severity of this vulnerability high. A fix is available at pull request 211 and is expected to be part of version 3.7.9.

osv:CVE-2025-53094
Complete source record
{
  "id": "17a398cd68ba908a7fc24a6ad686771a324b924ad8dfc0dc79230e8bc48e0231",
  "url": "https://osv.dev/vulnerability/CVE-2025-53094",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "ESPAsyncWebServer Vulnerable to CRLF Injection in AsyncWebHeader.cpp",
    "summary": "ESPAsyncWebServer is an asynchronous HTTP and WebSocket server library for ESP32, ESP8266, RP2040 and RP2350. In versions up to and including 3.7.8, a CRLF (Carriage Return Line Feed) injection vulnerability exists in the construction and output of HTTP headers within `AsyncWebHeader.cpp`. Unsanitized input allows attackers to inject CR (`\\r`) or LF (`\\n`) characters into header names or values, leading to arbitrary header or response manipulation. Manipulation of HTTP headers and responses can enable a wide range of attacks, making the severity of this vulnerability high. A fix is available at pull request 211 and is expected to be part of version 3.7.9.",
    "evidence": "osv:CVE-2025-53094",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2025-53094",
      "aliases": [
        "CVE-2025-53094",
        "GHSA-87j8-6f7g-h8wh"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/esp32async/espasyncwebserver",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "last_affected": "f06bca1f7718e84dd48a1f6a883c02d871ace7c9"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "3.7.8"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "3.7.8"
                      }
                    ],
                    "source": "DESCRIPTION"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v3.7.8",
            "v3.7.7",
            "v3.7.6",
            "v3.7.5",
            "v3.7.4",
            "v3.7.3",
            "v3.7.2",
            "v3.7.1",
            "v3.7.0",
            "v3.6.2",
            "v3.6.1",
            "v3.6.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-53094.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:37.243163397Z",
      "provider": "osv",
      "references": [
        "https://github.com/ESP32Async/ESPAsyncWebServer/blob/1095dfd1ecf1a903aede29854232af1b24f089b1/src/AsyncWebHeader.cpp#L6-L32",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/53xxx/CVE-2025-53094.json",
        "https://github.com/ESP32Async/ESPAsyncWebServer/security/advisories/GHSA-87j8-6f7g-h8wh",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-53094",
        "https://github.com/ESP32Async/ESPAsyncWebServer/pull/211"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-113",
          "CWE-93"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/53xxx/CVE-2025-53094.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-53094",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 504729,
  "published_at": "2025-06-27T19:57:15.032+00:00"
}