Vulnerabilities in pkg:pypi/emmett-core

PACKAGE
Advisory Identifier: GHSA-x6cr-mq53-cc76
Advisory Summary

CVE-2026-25577 is a HIGH (CVSS 7.5) denial of service vulnerability (CWE-703: Improper Check or Handling of Exceptional Conditions) affecting Emmett-Core libraries in the PyPI ecosystem. The issue involves unhandled cookieerror exception causing denial of service. Remediation is available by upgrading affected packages to version 1.3.11.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/emmett-core

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:pypi/emmett-core. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-x6cr-mq53-cc76 CVE-2026-25577 HIGH Emmett-Core: Unhandled CookieError Exception Causing Denial of Service

CVE-2026-25577 at a Glance

CVE Identifier CVE-2026-25577
GHSA Identifier GHSA-x6cr-mq53-cc76
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-703: Improper Check or Handling of Exceptional Conditions
Affected Product Emmett-Core
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 7.5

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:H).

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 High (A:H)

How to Fix CVE-2026-25577

To remediate this vulnerability, upgrade all affected Emmett-Core dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

emmett-core fixed: 1.3.11
pip install emmett-core>=1.3.11
Verify Direct and Transitive Dependencies

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

pip show emmett-core

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2026-25577, inspect your installed packages using pip:

pip show emmett-core

Analyze the terminal output to locate any version of Emmett-Core in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.3.11), your application is affected.

Note: The pip show emmett-core command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-703: Improper Check or Handling of Exceptional Conditions, where the product does not properly anticipate or handle exceptional conditions that rarely occur during normal operation of the product. In Emmett-Core, 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

### Summary The `cookies` property in `emmett_core.http.wrappers.Request` does not handle `CookieError` exceptions when parsing malformed Cookie headers. This allows unauthenticated attackers to trigger HTTP 500 errors and cause denial of service. ### Details **Location:** `emmett_core/http/wrappers/__init__.py` (line 64) **Vulnerable Code:** ```python @cachedprop def cookies(self) -> SimpleCookie: cookies: SimpleCookie = SimpleCookie() for cookie in self.headers.get("cookie", "").split(";"): cookies.load(cookie) # No exception handling return cookies ``` ### PoC Sending cookies containing special characters such as /(){} will result in insufficient error handling and a server error. ```bash $ curl -w "\nTime: %{time_total}s\n" http://localhost:8000/ -H "Cookie:/security=test" Internal error Time: 0.024363s ``` After the same error occurs several times, the server cannot process it normally. ```bash $ curl -w "\nTime: %{time_total}s\n" http://localhost:8000/ -H "Cookie:(security=test" Internal error Time: 60.069334s $ curl -w "\nTime: %{time_total}s\n" http://localhost:8000/ -H "Cookie:security=test" Internal error Time: 60.074031s ``` This is server log. ```bash [2026-02-03 08:23:40,541] ERROR in handlers: Application exception: Traceback (most recent call last): File "/home/geonwoo/.local/lib/python3.13/site-packages/emmett/rsgi/handlers.py", line 70, in dynamic_handler http = await self.router.dispatch(request, response) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/geonwoo/.local/lib/python3.13/site-packages/emmett_core/routing/router.py", line 240, in dispatch return await match.dispatch(reqargs, response) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/geonwoo/.local/lib/python3.13/site-packages/emmett_core/routing/dispatchers.py", line 57, in dispatch await self._parallel_flow(self.flow_open) File "/home/geonwoo/.local/lib/python3.13/site-packages/emmett_core/routing/dispatchers.py", line 17, in _parallel_flow raise task.exception() File "/home/geonwoo/.local/lib/python3.13/site-packages/emmett_core/sessions.py", line 102, in open_request if self.cookie_name in self.current.request.cookies: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/geonwoo/.local/lib/python3.13/site-packages/emmett_core/utils.py", line 37, in __get__ obj.__dict__[self.__name__] = rv = self.fget(obj) ~~~~~~~~~^^^^^ File "/home/geonwoo/.local/lib/python3.13/site-packages/emmett_core/http/wrappers/__init__.py", line 64, in cookies cookies.load(cookie) ~~~~~~~~~~~~^^^^^^^^ File "/usr/lib/python3.13/http/cookies.py", line 516, in load self.__parse_string(rawdata) ~~~~~~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib/python3.13/http/cookies.py", line 580, in __parse_string self.__set(key, rval, cval) ~~~~~~~~~~^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.13/http/cookies.py", line 472, in __set M.set(key, real_value, coded_value) ~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.13/http/cookies.py", line 335, in set raise CookieError('Illegal key %r' % (key,)) http.cookies.CookieError: Illegal key '/security' ``` ### Impact This vulnerability allows unauthenticated attackers to cause denial of service and performance degradation by sending malformed Cookie headers. After this vulnerability occurs, we expect it to be difficult to use the normal service. ### patch `/emmett_core/http/wrappers/__init__.py` ```python - from http.cookies import SimpleCookie + from http.cookies import SimpleCookie, CookieError # add CookieError ... ... @cachedprop def cookies(self) -> SimpleCookie: cookies: SimpleCookie = SimpleCookie() for cookie in self.headers.get("cookie", "").split(";"): - cookies.load(cookie) + try: + cookies.load(cookie) + except CookieError: + continue return cookies ```

CVE-2026-25577 Affected Emmett-Core Versions

1 component(s)
Fixed Versions:
1.3.11
Product / Package Ecosystem Affected Versions Fixed Version
emmett-core
PyPI
< 1.3.11
1.3.11

References

Frequently Asked Questions

What is CVE-2026-25577?
CVE-2026-25577 is a security vulnerability in Emmett-Core involving Unhandled CookieError Exception Causing Denial of Service under CWE-703: Improper Check or Handling of Exceptional Conditions.
Which Emmett-Core versions are affected?
Affected versions include releases prior to 1.3.11 across affected packages: emmett-core.
What version fixes CVE-2026-25577?
Upgrading to 1.3.11 (or the latest patched release for your respective branch) resolves the vulnerability.
Is emmett-core affected?
Yes, emmett-core is affected in releases prior to 1.3.11. Upgrade your dependency to 1.3.11 or later.
What is the CVSS score of CVE-2026-25577?
CVE-2026-25577 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2026-25577?
CVE-2026-25577 is classified under CWE-703: Improper Check or Handling of Exceptional Conditions (The product does not properly anticipate or handle exceptional conditions that rarely occur during normal operation of the product.).
How can I check PyPI dependencies for CVE-2026-25577?
Run the dependency tree command: 'pip show emmett-core'. 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-x6cr-mq53-cc76",
  "modified" : "2026-02-10T19:56:59Z",
  "published" : "2026-02-10T14:33:15Z",
  "aliases" : [ "CVE-2026-25577" ],
  "summary" : "Emmett-Core: Unhandled CookieError Exception Causing Denial of Service",
  "details" : "### Summary\nThe `cookies` property in `emmett_core.http.wrappers.Request` does not handle \n`CookieError` exceptions when parsing malformed Cookie headers. This allows \nunauthenticated attackers to trigger HTTP 500 errors and cause denial of service.\n\n\n### Details\n\n**Location:** `emmett_core/http/wrappers/__init__.py` (line 64)\n\n**Vulnerable Code:**\n```python\n@cachedprop\ndef cookies(self) -> SimpleCookie:\n    cookies: SimpleCookie = SimpleCookie()\n    for cookie in self.headers.get(\"cookie\", \"\").split(\";\"):\n        cookies.load(cookie)  # No exception handling\n    return cookies\n```\n\n### PoC\nSending cookies containing special characters such as /(){} will result in insufficient error handling and a server error.\n```bash\n$ curl -w \"\\nTime: %{time_total}s\\n\" http://localhost:8000/ -H \"Cookie:/security=test\"\nInternal error\nTime: 0.024363s\n```\nAfter the same error occurs several times, the server cannot process it normally.\n```bash\n$ curl -w \"\\nTime: %{time_total}s\\n\" http://localhost:8000/ -H \"Cookie:(security=test\"\nInternal error\nTime: 60.069334s\n\n$ curl -w \"\\nTime: %{time_total}s\\n\" http://localhost:8000/ -H \"Cookie:security=test\"\nInternal error\nTime: 60.074031s\n```\n\nThis is server log.\n```bash\n[2026-02-03 08:23:40,541] ERROR in handlers: Application exception:\nTraceback (most recent call last):\n  File \"/home/geonwoo/.local/lib/python3.13/site-packages/emmett/rsgi/handlers.py\", line 70, in dynamic_handler\n    http = await self.router.dispatch(request, response)\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/home/geonwoo/.local/lib/python3.13/site-packages/emmett_core/routing/router.py\", line 240, in dispatch\n    return await match.dispatch(reqargs, response)\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/home/geonwoo/.local/lib/python3.13/site-packages/emmett_core/routing/dispatchers.py\", line 57, in dispatch\n    await self._parallel_flow(self.flow_open)\n  File \"/home/geonwoo/.local/lib/python3.13/site-packages/emmett_core/routing/dispatchers.py\", line 17, in _parallel_flow\n    raise task.exception()\n  File \"/home/geonwoo/.local/lib/python3.13/site-packages/emmett_core/sessions.py\", line 102, in open_request\n    if self.cookie_name in self.current.request.cookies:\n                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/home/geonwoo/.local/lib/python3.13/site-packages/emmett_core/utils.py\", line 37, in __get__\n    obj.__dict__[self.__name__] = rv = self.fget(obj)\n                                       ~~~~~~~~~^^^^^\n  File \"/home/geonwoo/.local/lib/python3.13/site-packages/emmett_core/http/wrappers/__init__.py\", line 64, in cookies\n    cookies.load(cookie)\n    ~~~~~~~~~~~~^^^^^^^^\n  File \"/usr/lib/python3.13/http/cookies.py\", line 516, in load\n    self.__parse_string(rawdata)\n    ~~~~~~~~~~~~~~~~~~~^^^^^^^^^\n  File \"/usr/lib/python3.13/http/cookies.py\", line 580, in __parse_string\n    self.__set(key, rval, cval)\n    ~~~~~~~~~~^^^^^^^^^^^^^^^^^\n  File \"/usr/lib/python3.13/http/cookies.py\", line 472, in __set\n    M.set(key, real_value, coded_value)\n    ~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/usr/lib/python3.13/http/cookies.py\", line 335, in set\n    raise CookieError('Illegal key %r' % (key,))\nhttp.cookies.CookieError: Illegal key '/security'\n```\n\n### Impact\nThis vulnerability allows unauthenticated attackers to cause denial of service \nand performance degradation by sending malformed Cookie headers. \nAfter this vulnerability occurs, we expect it to be difficult to use the normal service.\n\n\n\n### patch \n`/emmett_core/http/wrappers/__init__.py`\n```python\n- from http.cookies import SimpleCookie \n+ from http.cookies import SimpleCookie, CookieError  # add CookieError\n...\n...\n    @cachedprop\n    def cookies(self) -> SimpleCookie:\n        cookies: SimpleCookie = SimpleCookie()\n        for cookie in self.headers.get(\"cookie\", \"\").split(\";\"):\n-           cookies.load(cookie)\n+           try:\n+               cookies.load(cookie)\n+            except CookieError:\n+                continue\n        return cookies\n```",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "emmett-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.3.11"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 1.3.10"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/emmett-framework/core/security/advisories/GHSA-x6cr-mq53-cc76"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-25577"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/emmett-framework/core/commit/9557ea23a27cbadf7774d8bca6bbe4b54fa8a3ec"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/emmett-framework/core/commit/c126757133e118119a280b58f3bb345b1c9a8a2a"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/emmett-framework/core"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-248", "CWE-703" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-02-10T14:33:15Z",
    "nvd_published_at" : "2026-02-10T18:16:37Z"
  }
}