Vulnerability Instance
Lookup for vulnerabilities affecting packages.
GET /api/vulnerabilities/17748?format=api
{ "url": "http://public2.vulnerablecode.io/api/vulnerabilities/17748?format=api", "vulnerability_id": "VCID-5wd2-9wcr-ayg4", "summary": "Inefficient Regular Expression Complexity\nA Regular Expression Denial of Service (ReDoS) issue was discovered in the sanitize_html function of redcloth gem v4.0.0. This vulnerability allows attackers to cause a Denial of Service (DoS) via supplying a crafted payload.", "aliases": [ { "alias": "CVE-2023-31606" }, { "alias": "GHSA-qcm3-vfq5-wfr2" } ], "fixed_packages": [], "affected_packages": [ { "url": "http://public2.vulnerablecode.io/api/packages/64140?format=api", "purl": "pkg:gem/RedCloth@4.3.2", "is_vulnerable": true, "affected_by_vulnerabilities": [ { "vulnerability": "VCID-5wd2-9wcr-ayg4" } ], "resource_url": "http://public2.vulnerablecode.io/packages/pkg:gem/RedCloth@4.3.2" } ], "references": [ { "reference_url": "https://api.first.org/data/v1/epss?cve=CVE-2023-31606", "reference_id": "", "reference_type": "", "scores": [ { "value": "0.00912", "scoring_system": "epss", "scoring_elements": "0.76198", "published_at": "2026-05-30T12:55:00Z" } ], "url": "https://api.first.org/data/v1/epss?cve=CVE-2023-31606" }, { "reference_url": "https://github.com/jgarber/redcloth", "reference_id": "", "reference_type": "", "scores": [], "url": "https://github.com/jgarber/redcloth" }, { "reference_url": "https://github.com/jgarber/redcloth/blob/v4.3.2/lib/redcloth/formatters/html.rb#L327", "reference_id": "", "reference_type": "", "scores": [], "url": "https://github.com/jgarber/redcloth/blob/v4.3.2/lib/redcloth/formatters/html.rb#L327" }, { "reference_url": "https://github.com/jgarber/redcloth/issues/73", "reference_id": "", "reference_type": "", "scores": [], "url": "https://github.com/jgarber/redcloth/issues/73" }, { "reference_url": "https://lists.debian.org/debian-lts-announce/2023/07/msg00002.html", "reference_id": "", "reference_type": "", "scores": [], "url": "https://lists.debian.org/debian-lts-announce/2023/07/msg00002.html" }, { "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2023-31606", "reference_id": "CVE-2023-31606", "reference_type": "", "scores": [], "url": "https://nvd.nist.gov/vuln/detail/CVE-2023-31606" }, { "reference_url": "https://github.com/e23e/CVE-2023-31606#readme", "reference_id": "CVE-2023-31606#README", "reference_type": "", "scores": [], "url": "https://github.com/e23e/CVE-2023-31606#readme" }, { "reference_url": "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/RedCloth/CVE-2023-31606.yml", "reference_id": "CVE-2023-31606.YML", "reference_type": "", "scores": [], "url": "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/RedCloth/CVE-2023-31606.yml" }, { "reference_url": "https://github.com/advisories/GHSA-qcm3-vfq5-wfr2", "reference_id": "GHSA-qcm3-vfq5-wfr2", "reference_type": "", "scores": [], "url": "https://github.com/advisories/GHSA-qcm3-vfq5-wfr2" } ], "weaknesses": [ { "cwe_id": 1035, "name": "OWASP Top Ten 2017 Category A9 - Using Components with Known Vulnerabilities", "description": "Weaknesses in this category are related to the A9 category in the OWASP Top Ten 2017." }, { "cwe_id": 1333, "name": "Inefficient Regular Expression Complexity", "description": "The product uses a regular expression with an inefficient, possibly exponential worst-case computational complexity that consumes excessive CPU cycles." }, { "cwe_id": 937, "name": "OWASP Top Ten 2013 Category A9 - Using Components with Known Vulnerabilities", "description": "Weaknesses in this category are related to the A9 category in the OWASP Top Ten 2013." } ], "exploits": [], "severity_range_score": null, "exploitability": null, "weighted_severity": null, "risk_score": null, "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-5wd2-9wcr-ayg4" }