{"url":"http://public2.vulnerablecode.io/api/packages/40345?format=json","purl":"pkg:composer/league/commonmark@2.0.0","type":"composer","namespace":"league","name":"commonmark","version":"2.0.0","qualifiers":{},"subpath":"","is_vulnerable":true,"next_non_vulnerable_version":"2.8.2","latest_non_vulnerable_version":"2.8.2","affected_by_vulnerabilities":[{"url":"http://public2.vulnerablecode.io/api/vulnerabilities/359661?format=json","vulnerability_id":"VCID-1xgz-4s2a-vyan","summary":"league/commonmark's quadratic complexity bugs may lead to a denial of service\n### Impact\n\nSeveral polynomial time complexity issues in league/commonmark may lead to unbounded resource exhaustion and subsequent denial of service.\n\nMalicious users could trigger that inefficient code with carefully crafted Markdown inputs that are specifically designed to ensure the worst-case performance is reached.  Sending multiple such requests in parallel could tie up all available CPU resources and/or PHP-FPM processes, leading to denial of service for legitimate users.\n\n### Patches\n\nThese vulnerabilities have been patched in version 2.6.0.  All users on older versions are highly encouraged to upgrade as soon as possible.\n\n### Workarounds\n\nIf you cannot upgrade, you may be able to mitigate the issues by:\n\n- Setting very low `memory_limit` and `max_execution_time` PHP configurations to prevent runaway resource usage\n- Implementing rate-limiting, bot protection, or other approaches to reduce the risk of simultaneous bad requests hitting your site\n- Limiting the size of inputs fed into this library (specifically the max length of each line)\n- Limiting the use of this library to trusted users\n\n### References\n\nMost of these issues were discovered in other Markdown parsers. You can read more about them here:\n\n* https://github.com/commonmark/commonmark.js/issues/129\n* https://github.com/commonmark/commonmark.js/issues/157\n* https://github.com/commonmark/commonmark.js/issues/172\n* https://github.com/github/cmark-gfm/security/advisories/GHSA-r572-jvj2-3m8p\n* https://github.com/github/cmark-gfm/security/advisories/GHSA-24f7-9frr-5h2r\n* https://github.com/github/cmark-gfm/security/advisories/GHSA-29g3-96g3-jg6c\n* https://github.com/github/cmark-gfm/security/advisories/GHSA-r8vr-c48j-fcc5\n* https://github.com/github/cmark-gfm/security/advisories/GHSA-w4qg-3vf7-m9x5\n* https://github.com/github/cmark-gfm/security/advisories/GHSA-66g8-4hjf-77xh\n\nFor general information about this type of issue:\n\n* https://en.wikipedia.org/wiki/Time_complexity\n* https://cwe.mitre.org/data/definitions/407.html","references":[{"reference_url":"https://github.com/commonmark/commonmark.js/issues/129","reference_id":"","reference_type":"","scores":[{"value":"7.5","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/commonmark/commonmark.js/issues/129"},{"reference_url":"https://github.com/commonmark/commonmark.js/issues/157","reference_id":"","reference_type":"","scores":[{"value":"7.5","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/commonmark/commonmark.js/issues/157"},{"reference_url":"https://github.com/commonmark/commonmark.js/issues/172","reference_id":"","reference_type":"","scores":[{"value":"7.5","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/commonmark/commonmark.js/issues/172"},{"reference_url":"https://github.com/thephpleague/commonmark","reference_id":"","reference_type":"","scores":[{"value":"7.5","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/thephpleague/commonmark"},{"reference_url":"https://github.com/thephpleague/commonmark/security/advisories/GHSA-c2pc-g5qf-rfrf","reference_id":"","reference_type":"","scores":[{"value":"7.5","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/thephpleague/commonmark/security/advisories/GHSA-c2pc-g5qf-rfrf"},{"reference_url":"https://github.com/github/cmark-gfm/security/advisories/GHSA-24f7-9frr-5h2r","reference_id":"GHSA-24f7-9frr-5h2r","reference_type":"","scores":[{"value":"7.5","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/github/cmark-gfm/security/advisories/GHSA-24f7-9frr-5h2r"},{"reference_url":"https://github.com/github/cmark-gfm/security/advisories/GHSA-29g3-96g3-jg6c","reference_id":"GHSA-29g3-96g3-jg6c","reference_type":"","scores":[{"value":"7.5","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/github/cmark-gfm/security/advisories/GHSA-29g3-96g3-jg6c"},{"reference_url":"https://github.com/github/cmark-gfm/security/advisories/GHSA-66g8-4hjf-77xh","reference_id":"GHSA-66g8-4hjf-77xh","reference_type":"","scores":[{"value":"7.5","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/github/cmark-gfm/security/advisories/GHSA-66g8-4hjf-77xh"},{"reference_url":"https://github.com/advisories/GHSA-c2pc-g5qf-rfrf","reference_id":"GHSA-c2pc-g5qf-rfrf","reference_type":"","scores":[],"url":"https://github.com/advisories/GHSA-c2pc-g5qf-rfrf"},{"reference_url":"https://github.com/github/cmark-gfm/security/advisories/GHSA-r572-jvj2-3m8p","reference_id":"GHSA-r572-jvj2-3m8p","reference_type":"","scores":[{"value":"7.5","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/github/cmark-gfm/security/advisories/GHSA-r572-jvj2-3m8p"},{"reference_url":"https://github.com/github/cmark-gfm/security/advisories/GHSA-r8vr-c48j-fcc5","reference_id":"GHSA-r8vr-c48j-fcc5","reference_type":"","scores":[{"value":"7.5","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/github/cmark-gfm/security/advisories/GHSA-r8vr-c48j-fcc5"},{"reference_url":"https://github.com/github/cmark-gfm/security/advisories/GHSA-w4qg-3vf7-m9x5","reference_id":"GHSA-w4qg-3vf7-m9x5","reference_type":"","scores":[{"value":"7.5","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/github/cmark-gfm/security/advisories/GHSA-w4qg-3vf7-m9x5"}],"fixed_packages":[{"url":"http://public2.vulnerablecode.io/api/packages/372498?format=json","purl":"pkg:composer/league/commonmark@2.6.0","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-36ef-8fgr-v3b7"},{"vulnerability":"VCID-4j7c-9ate-duee"},{"vulnerability":"VCID-pqpv-czja-83gw"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:composer/league/commonmark@2.6.0"}],"aliases":["GHSA-c2pc-g5qf-rfrf"],"risk_score":null,"exploitability":null,"weighted_severity":null,"resource_url":"http://public2.vulnerablecode.io/vulnerabilities/VCID-1xgz-4s2a-vyan"},{"url":"http://public2.vulnerablecode.io/api/vulnerabilities/97315?format=json","vulnerability_id":"VCID-36ef-8fgr-v3b7","summary":"league/commonmark is a PHP Markdown parser. A cross-site scripting (XSS) vulnerability in the Attributes extension of the league/commonmark library (versions 1.5.0 through 2.6.x) allows remote attackers to insert malicious JavaScript calls into HTML. The league/commonmark library provides configuration options such as `html_input: 'strip'` and `allow_unsafe_links: false` to mitigate cross-site scripting (XSS) attacks by stripping raw HTML and disallowing unsafe links. However, when the Attributes Extension is enabled, it introduces a way for users to inject arbitrary HTML attributes into elements via Markdown syntax using curly braces. Version 2.7.0 contains three changes to prevent this XSS attack vector: All attributes starting with `on` are considered unsafe and blocked by default; support for an explicit allowlist of allowed HTML attributes; and manually-added `href` and `src` attributes now respect the existing `allow_unsafe_links` configuration option. If upgrading is not feasible, please consider disabling the `AttributesExtension` for untrusted users and/or filtering the rendered HTML through a library like HTMLPurifier.","references":[{"reference_url":"https://api.first.org/data/v1/epss?cve=CVE-2025-46734","reference_id":"","reference_type":"","scores":[{"value":"0.0005","scoring_system":"epss","scoring_elements":"0.15946","published_at":"2026-06-11T12:55:00Z"}],"url":"https://api.first.org/data/v1/epss?cve=CVE-2025-46734"},{"reference_url":"https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2025-46734","reference_id":"","reference_type":"","scores":[],"url":"https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2025-46734"},{"reference_url":"https://github.com/thephpleague/commonmark","reference_id":"","reference_type":"","scores":[{"value":"6.4","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N"},{"value":"MODERATE","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/thephpleague/commonmark"},{"reference_url":"https://nvd.nist.gov/vuln/detail/CVE-2025-46734","reference_id":"","reference_type":"","scores":[{"value":"6.4","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N"},{"value":"MODERATE","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-46734"},{"reference_url":"https://github.com/thephpleague/commonmark/commit/f0d626cf05ad3e99e6db26ebcb9091b6cd1cd89b","reference_id":"f0d626cf05ad3e99e6db26ebcb9091b6cd1cd89b","reference_type":"","scores":[{"value":"6.4","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N"},{"value":"MODERATE","scoring_system":"generic_textual","scoring_elements":""},{"value":"Track","scoring_system":"ssvc","scoring_elements":"SSVCv2/E:N/A:N/T:P/P:M/B:A/M:M/D:T/2025-05-06T13:46:48Z/"}],"url":"https://github.com/thephpleague/commonmark/commit/f0d626cf05ad3e99e6db26ebcb9091b6cd1cd89b"},{"reference_url":"https://github.com/advisories/GHSA-3527-qv2q-pfvx","reference_id":"GHSA-3527-qv2q-pfvx","reference_type":"","scores":[],"url":"https://github.com/advisories/GHSA-3527-qv2q-pfvx"},{"reference_url":"https://github.com/thephpleague/commonmark/security/advisories/GHSA-3527-qv2q-pfvx","reference_id":"GHSA-3527-qv2q-pfvx","reference_type":"","scores":[{"value":"6.4","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N"},{"value":"MODERATE","scoring_system":"generic_textual","scoring_elements":""},{"value":"Track","scoring_system":"ssvc","scoring_elements":"SSVCv2/E:N/A:N/T:P/P:M/B:A/M:M/D:T/2025-05-06T13:46:48Z/"}],"url":"https://github.com/thephpleague/commonmark/security/advisories/GHSA-3527-qv2q-pfvx"},{"reference_url":"https://usn.ubuntu.com/8194-1/","reference_id":"USN-8194-1","reference_type":"","scores":[],"url":"https://usn.ubuntu.com/8194-1/"}],"fixed_packages":[{"url":"http://public2.vulnerablecode.io/api/packages/378867?format=json","purl":"pkg:composer/league/commonmark@2.7.0","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-4j7c-9ate-duee"},{"vulnerability":"VCID-pqpv-czja-83gw"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:composer/league/commonmark@2.7.0"}],"aliases":["CVE-2025-46734","GHSA-3527-qv2q-pfvx"],"risk_score":2.9,"exploitability":"0.5","weighted_severity":"5.8","resource_url":"http://public2.vulnerablecode.io/vulnerabilities/VCID-36ef-8fgr-v3b7"},{"url":"http://public2.vulnerablecode.io/api/vulnerabilities/66387?format=json","vulnerability_id":"VCID-pqpv-czja-83gw","summary":"league/commonmark is a PHP Markdown parser. Prior to version 2.8.1, the DisallowedRawHtml extension can be bypassed by inserting a newline, tab, or other ASCII whitespace character between a disallowed HTML tag name and the closing >. For example, <script\\n> would pass through unfiltered and be rendered as a valid HTML tag by browsers. This is a cross-site scripting (XSS) vector for any application that relies on this extension to sanitize untrusted user input. All applications using the DisallowedRawHtml extension to process untrusted markdown are affected. Applications that use a dedicated HTML sanitizer (such as HTML Purifier) on the rendered output are not affected. This issue has been patched in version 2.8.1.","references":[{"reference_url":"https://api.first.org/data/v1/epss?cve=CVE-2026-30838","reference_id":"","reference_type":"","scores":[{"value":"0.00016","scoring_system":"epss","scoring_elements":"0.03734","published_at":"2026-06-11T12:55:00Z"}],"url":"https://api.first.org/data/v1/epss?cve=CVE-2026-30838"},{"reference_url":"https://commonmark.thephpleague.com/extensions/disallowed-raw-html","reference_id":"","reference_type":"","scores":[{"value":"5.1","scoring_system":"cvssv4","scoring_elements":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:L/VA:N/SC:L/SI:L/SA:N"},{"value":"MODERATE","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://commonmark.thephpleague.com/extensions/disallowed-raw-html"},{"reference_url":"https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-30838","reference_id":"","reference_type":"","scores":[],"url":"https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-30838"},{"reference_url":"https://github.com/thephpleague/commonmark","reference_id":"","reference_type":"","scores":[{"value":"5.1","scoring_system":"cvssv4","scoring_elements":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:L/VA:N/SC:L/SI:L/SA:N"},{"value":"MODERATE","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/thephpleague/commonmark"},{"reference_url":"https://nvd.nist.gov/vuln/detail/CVE-2026-30838","reference_id":"CVE-2026-30838","reference_type":"","scores":[{"value":"5.1","scoring_system":"cvssv4","scoring_elements":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:L/VA:N/SC:L/SI:L/SA:N"},{"value":"MODERATE","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-30838"},{"reference_url":"https://github.com/advisories/GHSA-4v6x-c7xx-hw9f","reference_id":"GHSA-4v6x-c7xx-hw9f","reference_type":"","scores":[{"value":"MODERATE","scoring_system":"cvssv3.1_qr","scoring_elements":""}],"url":"https://github.com/advisories/GHSA-4v6x-c7xx-hw9f"},{"reference_url":"https://github.com/thephpleague/commonmark/security/advisories/GHSA-4v6x-c7xx-hw9f","reference_id":"GHSA-4v6x-c7xx-hw9f","reference_type":"","scores":[{"value":"MODERATE","scoring_system":"cvssv3.1_qr","scoring_elements":""},{"value":"5.1","scoring_system":"cvssv4","scoring_elements":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:L/VA:N/SC:L/SI:L/SA:N"},{"value":"MODERATE","scoring_system":"generic_textual","scoring_elements":""},{"value":"Track","scoring_system":"ssvc","scoring_elements":"SSVCv2/E:N/A:N/T:P/P:M/B:A/M:M/D:T/2026-03-09T17:38:55Z/"}],"url":"https://github.com/thephpleague/commonmark/security/advisories/GHSA-4v6x-c7xx-hw9f"},{"reference_url":"https://usn.ubuntu.com/8194-1/","reference_id":"USN-8194-1","reference_type":"","scores":[],"url":"https://usn.ubuntu.com/8194-1/"}],"fixed_packages":[{"url":"http://public2.vulnerablecode.io/api/packages/40347?format=json","purl":"pkg:composer/league/commonmark@2.8.1","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-4j7c-9ate-duee"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:composer/league/commonmark@2.8.1"}],"aliases":["CVE-2026-30838","GHSA-4v6x-c7xx-hw9f"],"risk_score":3.1,"exploitability":"0.5","weighted_severity":"6.2","resource_url":"http://public2.vulnerablecode.io/vulnerabilities/VCID-pqpv-czja-83gw"}],"fixing_vulnerabilities":[],"risk_score":"3.1","resource_url":"http://public2.vulnerablecode.io/packages/pkg:composer/league/commonmark@2.0.0"}