{"answers":{"affected":"2 open source packages ship an affected version, including CocoaMQTT. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-30867 in the wild and no public exploit code.","fix":"Upgrade CocoaMQTT to 2.2.2 or later.","what":"CVE-2026-30867 is a medium-severity denial of service vulnerability in emqx CocoaMQTT, published on 2 Apr 2026. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-30867 and fix it if it is affected.\n\nWhat it is: CVE-2026-30867 is a medium-severity denial of service vulnerability in emqx CocoaMQTT, published on 2 Apr 2026. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2026-30867 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- CocoaMQTT (SwiftURL): affected all versions; fixed in 2.2.2\n- CocoaMQTT (SwiftURL): affected all versions; fixed in 2.2.2\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-30867/ (Markdown: https://insights.sbomify.com/CVE-2026-30867/index.md)","id":"CVE-2026-30867","markdown":"https://insights.sbomify.com/CVE-2026-30867/index.md","name":"CVE-2026-30867","record":{"aliases":["GHSA-r3fr-7m74-q7g2"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"MQTT client library","requires_auth":"low_privilege","summary":"A malicious MQTT broker can crash iOS/macOS apps by sending a malformed retained PUBLISH packet, causing a persistent denial of service.","user_interaction":"required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"cocoamqtt","vendor":"emqx"}],"cvss":{"score":5.7,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-617","name":"Reachable Assertion"}],"description":"CocoaMQTT is a MQTT 5.0 client library for iOS and macOS written in Swift. Prior to version 2.2.2, a vulnerability exists in the packet parsing logic of CocoaMQTT that allows an attacker (or a compromised/malicious MQTT broker) to remotely crash the host iOS/macOS/tvOS application. If an attacker publishes the 4-byte malformed payload to a shared topic with the RETAIN flag set to true, the MQTT broker will persist the payload. Any time a vulnerable client connects and subscribes to that topic, the broker will automatically push the malformed packet. The app will instantly crash in the background before the user can even interact with it. This effectively \"bricks\" the mobile application (a persistent DoS) until the retained message is manually wiped from the broker database. This issue has been patched in version 2.2.2.","ecosystems":["SwiftURL"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"CocoaMQTT: Denial of Service via Reachable Assertion in `PUBLISH` Packet Parsing","id":"CVE-2026-30867","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"SwiftURL","product":null,"products":[],"type":"denial_of_service","year":"2026"},"n_packages":2,"n_references":4,"next":{"headline":"Cross-Site Request Forgery (CSRF) in opnsense/core","id":"CVE-2026-30868"},"packages":[{"ecosystem":"SwiftURL","fixed":["2.2.2"],"introduced":["0"],"last_affected":[],"package":"CocoaMQTT","purl":null,"source":"GHSA-r3fr-7m74-q7g2"},{"ecosystem":"SwiftURL","fixed":["2.2.2"],"introduced":["0"],"last_affected":[],"package":"CocoaMQTT","purl":"pkg:swift/CocoaMQTT","source":"GHSA-r3fr-7m74-q7g2"}],"prev":{"headline":"Combodo iTop: Insecured access to uploaded images via sniffed url","id":"CVE-2026-30866"},"products":["CocoaMQTT"],"published":"2026-04-02","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-04-02","vendors":["emqx"]},"summary":"A malicious MQTT broker can crash iOS/macOS apps by sending a malformed retained PUBLISH packet, causing a persistent denial of service.","url":"https://insights.sbomify.com/CVE-2026-30867/"}