{"answers":{"affected":"2 open source packages ship an affected version, including ratex-parser.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-53531 exists.","fix":"Upgrade ratex-parser to 0.1.11 or later.","what":"CVE-2026-53531 is a medium-severity denial of service vulnerability in erweixin RaTeX, published on 21 Aug 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-53531 and fix it if it is affected.\n\nWhat it is: CVE-2026-53531 is a medium-severity denial of service vulnerability in erweixin RaTeX, published on 21 Aug 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-53531 exists.\n\nAffected packages and fixed versions:\n- ratex-parser (crates.io): affected all versions; fixed in 0.1.11\n- ratex-parser (crates.io): affected all versions; fixed in 0.1.11\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-53531/ (Markdown: https://insights.sbomify.com/CVE-2026-53531/index.md)","id":"CVE-2026-53531","markdown":"https://insights.sbomify.com/CVE-2026-53531/index.md","name":"CVE-2026-53531","record":{"aliases":["GHSA-4w5h-hx6r-28q7"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Rust math rendering library","requires_auth":"none","summary":"An attacker can cause a process crash via stack overflow by submitting deeply nested LaTeX input to the RaTeX library.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":6.9,"severity":"medium","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-674","name":"Uncontrolled Recursion"},{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"description":"RaTeX is a KaTeX-compatible math rendering engine written in Rust. Prior to version 0.1.11, RaTeX’s recursive-descent parser recurses one (or more) native stack frame per nesting level at `{`, `\\left`, `\\sqrt{`, `^{`, etc, with no maximum depth limit. A short, ~10 KB input of nested groups overflows the 8 MB main-thread stack and aborts the process. With `panic = \"abort\"` (`Cargo.toml:48`), and because a Rust stack overflow is always a fatal `SIGABRT` regardless of panic strategy this is an unrecoverable, whole-process denial of service reachable from a single untrusted LaTeX string. Version 0.1.11 fixes the issue.","ecosystems":["crates.io"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"ratex-parser has unbounded parser recursion that leads to stack overflow (process abort)","id":"CVE-2026-53531","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"crates.io","product":null,"products":[],"type":"denial_of_service","year":"2026"},"n_packages":2,"n_references":1,"next":{"headline":"OpenEXR: Unhandled assert abort in HTJ2K decoder via crafted QCD marker (DoS)","id":"CVE-2026-53532"},"packages":[{"ecosystem":"crates.io","fixed":["0.1.11"],"introduced":["0"],"last_affected":[],"package":"ratex-parser","purl":null,"source":"GHSA-4w5h-hx6r-28q7"},{"ecosystem":"crates.io","fixed":["0.1.11"],"introduced":["0"],"last_affected":[],"package":"ratex-parser","purl":"pkg:cargo/ratex-parser","source":"GHSA-4w5h-hx6r-28q7"}],"prev":{"headline":"ratex-parser panics on `\\verb` with a multibyte delimiter (UTF-8 byte-boundary slice)","id":"CVE-2026-53530"},"products":["RaTeX"],"published":"2026-08-21","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":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-08-25","vendors":["erweixin"]},"summary":"An attacker can cause a process crash via stack overflow by submitting deeply nested LaTeX input to the RaTeX library.","url":"https://insights.sbomify.com/CVE-2026-53531/"}