BREW-LITERATE-GIT-CVE-20… (GHSA-P6H9-GW49-RQM4)
Vulnerability from osv_homebrew – Published: 2026-08-13 17:02 – Updated: 2026-09-10 00:20 – Source website
VLAI
Summary
markdown2 is vulnerable to cross-site scripting
Details
An issue was discovered in markdown2 (aka python-markdown2) through 2.3.5. The safe_mode feature, which is supposed to sanitize user input against XSS, is flawed and does not escape the input properly. With a crafted payload, XSS can be triggered, as demonstrated by omitting the final > character from an IMG tag.
Severity
6.1 (Medium)
References
{
"affected": [
{
"ecosystem_specific": {
"fix": "bump",
"range_state": "fixed",
"resource": "markdown2",
"resource_purl": "pkg:pypi/markdown2@2.5.5",
"upstream_fixed_in": "2.3.6"
},
"package": {
"ecosystem": "Homebrew",
"name": "literate-git",
"purl": "pkg:brew/literate-git"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "0.5.5"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"database_specific": {
"confidence": "high",
"source": "matched",
"strategy": "registry",
"upstream_evidence": [
{
"ecosystem": "PyPI",
"key": "pkg:pypi/markdown2@2.5.5",
"name": "markdown2",
"resource": "markdown2",
"strategy": "registry",
"subject_version": "2.5.5"
}
]
},
"details": "An issue was discovered in `markdown2` (aka python-markdown2) through 2.3.5. The `safe_mode` feature, which is supposed to sanitize user input against XSS, is flawed and does not escape the input properly. With a crafted payload, XSS can be triggered, as demonstrated by omitting the final `\u003e` character from an IMG tag.",
"id": "BREW-literate-git-CVE-2018-5773",
"modified": "2026-09-10T00:20:40Z",
"published": "2026-08-13T17:02:55Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2018-5773"
},
{
"type": "WEB",
"url": "https://github.com/google/osv/issues/430"
},
{
"type": "WEB",
"url": "https://github.com/trentm/python-markdown2/issues/285"
},
{
"type": "WEB",
"url": "https://github.com/trentm/python-markdown2/pull/303"
},
{
"type": "WEB",
"url": "https://github.com/trentm/python-markdown2/commit/1b1dcdd727c0ef03453b9f5ef5ae3679f1d72323"
},
{
"type": "ADVISORY",
"url": "https://github.com/advisories/GHSA-p6h9-gw49-rqm4"
},
{
"type": "WEB",
"url": "https://github.com/pypa/advisory-database/tree/main/vulns/markdown2/PYSEC-2018-13.yaml"
},
{
"type": "PACKAGE",
"url": "https://github.com/trentm/python-markdown2"
},
{
"type": "WEB",
"url": "https://github.com/trentm/python-markdown2/blob/master/CHANGES.md#python-markdown2-236"
}
],
"schema_version": "1.7.3",
"severity": [
{
"score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N",
"type": "CVSS_V3"
},
{
"score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N",
"type": "CVSS_V4"
}
],
"summary": "markdown2 is vulnerable to cross-site scripting",
"upstream": [
"GHSA-p6h9-gw49-rqm4",
"CVE-2018-5773",
"PYSEC-2018-13"
]
}
Loading…
Loading…
Experimental. This forecast is provided for visualization only and may change without notice. Do not use it for operational decisions.
Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
The MITRE ATT&CK techniques below are AI-generated suggestions, inferred from the description of the
vulnerability by the CIRCL/vulnerability-attack-technique-classification-roberta-base
model, served locally by ML-Gateway.
They have not been verified by an analyst and are provided for guidance only.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Loading…
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.
Loading…