# CVE-2026-104199: aMQTT: Inefficient Regular Expression Complexity and Uncontrolled Resource Consumption and Improper Input Validation

Status: published. Published: 2026-11-19. Updated: 2026-11-24.

aMQTT is an open source MQTT broker and client. From 0.11.0 until 0.11.4, add_subscription() in amqtt/broker.py accepts malformed single-level + wildcard placement because it checks substrings instead of validating each slash-delimited level. The _matches() function converts each + into a greedy regular-expression fragment and evaluates it with re.fullmatch(), allowing a filter containing many adjacent + characters to trigger catastrophic backtracking when compared with a topic that partially matches but ultimately fails. Because matching runs synchronously in _run_broadcast(), one subscription followed by a publish can block the broker event loop, stopping message delivery and new connection processing until restart. Anonymous clients can trigger the issue with the default configuration. Any authenticated client permitted to create arbitrary subscriptions and publish messages may still exploit it when authentication is enabled. This issue is fixed in version 0.11.4.

## Remediation

- fix: amqtt (pip): GitHub reports patched versions >=0.11.4. Check the advisory for the affected release branch. (source: GitHub GHSA-2hjf-7455-w946) — https://github.com/Yakifo/amqtt/security/advisories/GHSA-2hjf-7455-w946
- fix: amqtt (PyPI): OSV reports a fixed version 0.11.4. Check the advisory for supported release branches. (source: OSV GHSA-2hjf-7455-w946) — https://github.com/advisories/GHSA-2hjf-7455-w946

## Affected products and versions

- Yakifo / amqtt: >= 0.11.0, < 0.11.4 (affected). Source: CNA: GitHub_M
-  / amqtt (amqtt): >= 0.11.0, <= 0.11.3 (affected, GitHub advisory range). Source: GitHub GHSA-2hjf-7455-w946
-  / amqtt (amqtt): 0.11.0 (affected, PyPI); 0.11.1 (affected, PyPI); 0.11.2 (affected, PyPI); 0.11.3 (affected, PyPI); Ecosystem version events: introduced 0.11.0; fixed 0.11.4. Source: OSV GHSA-2hjf-7455-w946

## Severity and prioritization

- CVSS 4.0: 8.7 (high); CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N; source: CNA: GitHub_M

- CVSS 4.0: 8.7 (high); CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X; source: NVD: security-advisories@github.com

- CISA KEV: No listing in collected sources

- EPSS: 0.66% as of 2026-11-23; percentile 52.47%

- SSVC: exploitation none; automatable no; technical impact partial; source ADP: CISA-ADP

- Weaknesses: CWE-20, CWE-400, CWE-1333

## Exploit evidence

No exploit evidence in collected sources. This is not proof of no exploitation.

## References

- https://github.com/Yakifo/amqtt/security/advisories/GHSA-2hjf-7455-w946 (CNA: GitHub_M; x_refsource_CONFIRM)

- https://github.com/Yakifo/amqtt/pull/361 (CNA: GitHub_M; x_refsource_MISC)

- https://github.com/Yakifo/amqtt/commit/e48a8a65027667f936d415db7f01d3ac350104e0 (CNA: GitHub_M; x_refsource_MISC)

- https://github.com/Yakifo/amqtt/releases/tag/v0.11.4 (CNA: GitHub_M; x_refsource_MISC)

- https://github.com/Yakifo/amqtt/commit/e48a8a65027667f936d415db7f01d3ac350104e0 (security-advisories@github.com)

- https://github.com/Yakifo/amqtt/pull/361 (security-advisories@github.com)

- https://github.com/Yakifo/amqtt/releases/tag/v0.11.4 (security-advisories@github.com)

- https://github.com/Yakifo/amqtt/security/advisories/GHSA-2hjf-7455-w946 (security-advisories@github.com)

- https://github.com/Yakifo/amqtt/security/advisories/GHSA-2hjf-7455-w946 (GitHub Security Advisories; advisory)

- https://github.com/advisories/GHSA-2hjf-7455-w946 (OSV / GitHub Security Advisories; advisory)

- https://osv.dev/vulnerability/GHSA-2hjf-7455-w946 (OSV / GitHub Security Advisories; osv)

## Provenance

- CNA: GitHub_M: https://www.cve.org/CVERecord?id=CVE-2026-104199; retrieved 2026-11-24; source updated 2026-11-24

- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-104199; retrieved 2026-11-20; source updated 2026-11-19

- GitHub Security Advisories: https://github.com/Yakifo/amqtt/security/advisories/GHSA-2hjf-7455-w946; retrieved 2026-11-22; source updated 2026-10-02

- OSV / GitHub Security Advisories: https://osv.dev/vulnerability/GHSA-2hjf-7455-w946; retrieved 2026-11-24; source updated 2026-11-20

- FIRST EPSS: https://api.first.org/data/v1/epss?cve=CVE-2026-104199; retrieved 2026-11-24; source updated Not reported

Revision: 98bc01e0390f81dfd8ad40544d9a97486659a263bf688509e3a451f3a07e8042

Canonical: https://y2.dev/cve/CVE-2026-104199

## Agent and API access

Public CVE pages, Markdown, and JSON are free to read without an account or API key.

- Public catalog: https://y2.dev/cve/index.json. Follow nextCursor with the same search, filters, sort, and limit (1–100). A null cursor marks the end.

- WebMCP: search_cve_disclosures, get_cve_disclosure, get_cve_page_markdown, get_y2_cve_access. Available in compatible browsers.

- Cyber API: https://api.y2.dev/api/v2/cyber/cves and https://api.y2.dev/api/v2/cyber/cves/{cveId}.

- Y2 Pro or Elite: create a workspace API key with the intel:cyber scope and send Authorization: Bearer <Y2_API_KEY>. Setup: https://y2.dev/docs/api/create-key.

- x402: Pay per request without an account or API key. Omit Authorization, read the HTTP 402 PAYMENT-REQUIRED challenge, validate its current requirements, and retry with PAYMENT-SIGNATURE through an authorized payment client. These browser tools never make payments. Guide: https://y2.dev/docs/api/x402.

- OpenAPI: https://y2.dev/api/openapi.yaml. Agent access metadata: https://y2.dev/cve/agent.json.

Collected public records only. Check source status for coverage and freshness.