{"id":"CVE-2026-24489","aliases":["CVE-2026-24489","GHSA-gcgx-chcp-hxp9","PYSEC-2026-1400"],"related":[],"kind":"vulnerability","state":"published","title":"Gakido vulnerable to HTTP Header Injection (CRLF Injection)","summary":"Gakido is a Python HTTP client focused on browser impersonation and anti-bot evasion. A vulnerability was discovered in Gakido prior to version 0.1.1 that allowed HTTP header injection through CRLF (Carriage Return Line Feed) sequences in user-supplied header values and names. When making HTTP requests with user-controlled header values containing `\\r\\n` (CRLF), `\\n` (LF), or `\\x00` (null byte) characters, an attacker could inject arbitrary HTTP headers into the request. The fix in version 0.1.1 adds a `_sanitize_header()` function that strips `\\r`, `\\n`, and `\\x00` characters from both header names and values before they are included in HTTP requests.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Gakido is a Python HTTP client focused on browser impersonation and anti-bot evasion. A vulnerability was discovered in Gakido prior to version 0.1.1 that allowed HTTP header injection through CRLF (Carriage Return Line Feed) sequences in user-supplied header values and names. When making HTTP requests with user-controlled header values containing `\\r\\n` (CRLF), `\\n` (LF), or `\\x00` (null byte) characters, an attacker could inject arbitrary HTTP headers into the request. The fix in version 0.1.1 adds a `_sanitize_header()` function that strips `\\r`, `\\n`, and `\\x00` characters from both header names and values before they are included in HTTP requests.","source":"cvelist"},{"lang":"en","text":"A vulnerability was discovered in Gakido that allowed HTTP Header Injection through CRLF (Carriage Return Line Feed) sequences in user-supplied header values and names.\n\nWhen making HTTP requests with user-controlled header values containing `\\r\\n` (CRLF), `\\n` (LF), or `\\x00` (null byte) characters, an attacker could inject arbitrary HTTP headers into the request.\n\n## Impact\n\nAn attacker who can control header values passed to Gakido's `Client.get()`, `Client.post()`, or other request methods could:\n\n1. **Inject arbitrary HTTP headers** - Add malicious headers to requests\n2. **HTTP Response Splitting** - Potentially manipulate responses in certain proxy configurations\n3. **Cache Poisoning** - Inject headers that could poison intermediate caches\n4. **Session Fixation** - Inject session-related headers\n5. **Bypass Security Controls** - Inject headers that bypass server-side security checks\n\n## Proof of Concept\n\n```python\nfrom gakido import Client\n\n# Before fix: X-Injected header would be sent as a separate header\nc = Client(impersonate=\"chrome_120\")\nr = c.get(\"https://httpbin.org/headers\", headers={\n    \"User-Agent\": \"test\\r\\nX-Injected: pwned\"\n})\n\n# The server would receive:\n# User-Agent: test\n# X-Injected: pwned\n```\n\n## Affected Code\n\nThe vulnerability existed in the header processing logic where user-supplied headers were not sanitized before being sent in HTTP requests.\n\n**File:** `gakido/headers.py`  \n**Function:** `canonicalize_headers()`\n\n## Fix\n\nThe fix adds a `_sanitize_header()` function that strips `\\r`, `\\n`, and `\\x00` characters from both header names and values before they are included in HTTP requests.\n\n```python\ndef _sanitize_header(name: str, value: str) -> tuple[str, str]:\n    \"\"\"\n    Sanitize header name and value to prevent HTTP header injection (CRLF injection).\n    Strips CR, LF, and null bytes from both name and value.\n    \"\"\"\n    clean_name = name.replace(\"\\r\", \"\").replace(\"\\n\", \"\").replace(\"\\x00\", \"\")\n    clean_value = value.replace(\"\\r\", \"\").replace(\"\\n\", \"\").replace(\"\\x00\", \"\")\n    return clean_name, clean_value\n```","format":"markdown","source":"ghsa"},{"lang":"es","text":"Gakido es un cliente HTTP de Python centrado en la suplantación de navegadores y la evasión de bots. Se descubrió una vulnerabilidad en Gakido anterior a la versión 0.1.1 que permitía la inyección de encabezados HTTP a través de secuencias CRLF (retorno de carro y salto de línea) en los valores y nombres de los encabezados proporcionados por el usuario. Al realizar solicitudes HTTP con valores de encabezado controlados por el usuario que contienen caracteres `\\r\\n` (CRLF), `\\n` (LF) o `\\x00` (byte nulo), un atacante podía inyectar encabezados HTTP arbitrarios en la solicitud. La corrección en la versión 0.1.1 añade una función `_sanitize_header()` que elimina los caracteres `\\r`, `\\n` y `\\x00` tanto de los nombres como de los valores de los encabezados antes de que se incluyan en las solicitudes HTTP.","source":"nvd"}],"published":"2026-01-26T23:29:57.000Z","modified":"2026-07-07T17:57:21.373Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","score":5.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","score":5.3,"rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","score":5.3,"rating":"MEDIUM"}],"cwes":["CWE-93","CWE-113"],"affected":[{"ranges":[{"version":"< 0.1.1","status":"affected"}],"vendor":"HappyHackingSpace","product":"gakido","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.1.1"}],"ecosystem":"PyPI","package":"gakido","purl":"pkg:pypi/gakido","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.1.1"}],"ecosystem":"PyPI","package":"gakido","purl":"pkg:pypi/gakido","source":"pysec"}],"references":[{"url":"https://github.com/HappyHackingSpace/gakido/security/advisories/GHSA-gcgx-chcp-hxp9","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/HappyHackingSpace/gakido/commit/369c67e67c63da510c8a9ab021e54a92ccf1f788","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/HappyHackingSpace/gakido/releases/tag/v0.1.1-1bc6019","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-24489","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/HappyHackingSpace/gakido","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/gakido","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-gcgx-chcp-hxp9","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2026-01-27T14:46:28.507Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-24489","url":"https://www.cve.org/CVERecord?id=CVE-2026-24489","licence":"CVE Terms of Use","modified":"2026-01-27T14:46:42.530Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-gcgx-chcp-hxp9","url":"https://github.com/advisories/GHSA-gcgx-chcp-hxp9","licence":"CC-BY-4.0","modified":"2026-07-07T17:57:21.373Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-24489","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-24489","licence":"Public domain","modified":"2026-06-17T10:23:08.793Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-1400","url":"https://osv.dev/vulnerability/PYSEC-2026-1400","licence":"CC-BY-4.0","modified":"2026-07-07T17:46:43.200Z"}],"updatedAt":"2026-11-25T22:59:13.205Z","epss":{"score":0.00395,"percentile":0.35797,"date":"2026-12-01T12:00:22.000Z"}}