{"answers":{"affected":"2 open source packages ship an affected version, including marked. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2018-25110 exists.","fix":"Upgrade marked to 0.3.17 or later.","what":"CVE-2018-25110 is a medium-severity denial of service vulnerability in marked_project:marked, published on 23 May 2025. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2018-25110 and fix it if it is affected.\n\nWhat it is: CVE-2018-25110 is a medium-severity denial of service vulnerability in marked_project:marked, published on 23 May 2025. 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-2018-25110 exists.\n\nAffected packages and fixed versions:\n- marked (npm): affected all versions; fixed in 0.3.17\n- marked (npm): affected all versions; fixed in 0.3.17\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-2018-25110/ (Markdown: https://insights.sbomify.com/CVE-2018-25110/index.md)","id":"CVE-2018-25110","markdown":"https://insights.sbomify.com/CVE-2018-25110/index.md","name":"CVE-2018-25110","record":{"aliases":["DEBIAN-CVE-2018-25110","GHSA-p9wx-2529-fp83","UBUNTU-CVE-2018-25110"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"JavaScript markdown parser","requires_auth":"none","summary":"An attacker can cause a denial of service in applications using the marked library by submitting specially crafted markdown input that triggers catastrophic backtracking.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"Checkmarx","cpe":[{"product":"marked","vendor":"marked_project"}],"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-1333","name":"Inefficient Regular Expression Complexity"}],"description":"Marked prior to version 0.3.17 is vulnerable to a Regular Expression Denial of Service (ReDoS) attack due to catastrophic backtracking in several regular expressions used for parsing HTML tags and markdown links. An attacker can exploit this vulnerability by providing specially crafted markdown input, such as deeply nested or repetitively structured brackets or tag attributes, which cause the parser to hang and lead to a Denial of Service.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Regular Expression Denial of Service (ReDoS) in markedjs/marked","id":"CVE-2018-25110","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"denial_of_service","year":"2018"},"n_packages":2,"n_references":4,"next":{"headline":"django-helpdesk Allows Sensitive Data Exposure","id":"CVE-2018-25111"},"packages":[{"ecosystem":"npm","fixed":["0.3.17"],"introduced":["0"],"last_affected":[],"package":"marked","purl":null,"source":"GHSA-p9wx-2529-fp83"},{"ecosystem":"npm","fixed":["0.3.17"],"introduced":["0"],"last_affected":[],"package":"marked","purl":"pkg:npm/marked","source":"GHSA-p9wx-2529-fp83"}],"prev":{"headline":"Nintendo Animal Crossing Letter Trigram ac-exploit-gc memory corruption","id":"CVE-2018-25109"},"products":["marked_project:marked"],"published":"2025-05-23","related":[{"cvss_score":8.7,"headline":"Marked: OOM Denial of Service via Infinite Recursion in marked Tokenizer","id":"CVE-2026-41680","kev_date_added":null,"published":"2026-04-24"},{"cvss_score":7.5,"headline":"Regular Expression Denial of Service in marked","id":"CVE-2017-16114","kev_date_added":null,"published":"2018-06-07"},{"cvss_score":6.1,"headline":"Multiple Content Injection Vulnerabilities in marked","id":"CVE-2014-3743","kev_date_added":null,"published":"2020-01-06"},{"cvss_score":6.1,"headline":"Sanitization bypass using HTML Entities in marked","id":"CVE-2016-10531","kev_date_added":null,"published":"2018-05-31"},{"cvss_score":6.1,"headline":"Marked vulnerable to XSS from data URIs","id":"CVE-2017-1000427","kev_date_added":null,"published":"2018-01-02"},{"cvss_score":5.3,"headline":"Denial of Service in Marked","id":"CVE-2021-21306","kev_date_added":null,"published":"2021-02-08"}],"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":"2025-05-23","vendors":["marked_project"]},"summary":"An attacker can cause a denial of service in applications using the marked library by submitting specially crafted markdown input that triggers catastrophic backtracking.","url":"https://insights.sbomify.com/CVE-2018-25110/"}