{"answers":{"affected":"2 open source packages ship an affected version, including mathjax. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-39663 exists.","fix":"No fix has been published for CVE-2023-39663 yet. Limit exposure of the affected software until one is available.","what":"CVE-2023-39663 is a high-severity denial of service vulnerability in n/a, published on 29 Aug 2023. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2023-39663 and fix it if it is affected.\n\nWhat it is: CVE-2023-39663 is a high-severity denial of service vulnerability in n/a, published on 29 Aug 2023. 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-2023-39663 exists.\n\nAffected packages and fixed versions:\n- mathjax (npm): affected all versions up to 2.7.9; no fix listed\n- mathjax (npm): affected all versions up to 2.7.9; no fix listed\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-2023-39663/ (Markdown: https://insights.sbomify.com/CVE-2023-39663/index.md)","id":"CVE-2023-39663","markdown":"https://insights.sbomify.com/CVE-2023-39663/index.md","name":"CVE-2023-39663","record":{"aliases":["GHSA-v638-q856-grg8","UBUNTU-CVE-2023-39663"],"analysis":{"component_type":"library","fix_type":"no_fix_stated","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"JavaScript math library","requires_auth":"none","summary":"Regular expression denial of service in MathJax library, though vendor disputes risk as regexes are not applied to user input.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"mathjax","vendor":"mathjax"}],"cvss":{"score":7.5,"severity":"high","source":"nvd","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-1333","name":"Inefficient Regular Expression Complexity"}],"description":"Mathjax up to v2.7.9 was discovered to contain two Regular expression Denial of Service (ReDoS) vulnerabilities in MathJax.js via the components pattern and markdownPattern. NOTE: the vendor disputes this because the regular expressions are not applied to user input; thus, there is no risk.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":false,"headline":"MathJax Regular expression Denial of Service (ReDoS)","id":"CVE-2023-39663","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"denial_of_service","year":"2023"},"n_packages":2,"n_references":1,"next":{"headline":"Memory corruption in n/a","id":"CVE-2023-39665"},"packages":[{"ecosystem":"npm","fixed":[],"introduced":["0"],"last_affected":["2.7.9"],"package":"mathjax","purl":null,"source":"GHSA-v638-q856-grg8"},{"ecosystem":"npm","fixed":[],"introduced":["0"],"last_affected":["2.7.9"],"package":"mathjax","purl":"pkg:npm/mathjax","source":"GHSA-v638-q856-grg8"}],"prev":{"headline":"llama-index vulnerable to arbitrary code execution","id":"CVE-2023-39662"},"products":["n/a"],"published":"2023-08-29","related":[{"cvss_score":5.4,"headline":"Macro in MathJax running untrusted Javascript within a web browser","id":"CVE-2018-1999024","kev_date_added":null,"published":"2018-07-23"}],"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":"yes","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-10-02","vendors":["n/a"]},"summary":"Regular expression denial of service in MathJax library, though vendor disputes risk as regexes are not applied to user input.","url":"https://insights.sbomify.com/CVE-2023-39663/"}