Search
Find a vulnerability
Search criteria
2 vulnerabilities found for markdoc by @astrojs
CVE-2026-126365 (GCVE-0-2026-126365)
Vulnerability from nvd – Published: 2026-11-12 22:36 – Updated: 2026-11-17 19:17
VLAI
EPSS
VEX
Title
Astro: XSS via unescaped code for unsupported languages in @astrojs/prism
Summary
Astro is a web framework for content-driven websites. Prior to @astrojs/prism 4.1.2, and from @astrojs/markdoc 0.3.0 until 2.1.2, runHighlighterWithAstro() returned code unchanged when Prism had no grammar for the requested language, and callers inserted that result as raw HTML. A code block labeled with an unsupported language could therefore render embedded HTML and script instead of displaying it as text. The Prism component was affected when applications supplied untrusted code with an unsupported or attacker-controlled lang, and the @astrojs/markdoc prism() extension was affected for less-trusted content authors even when Markdoc's ordinary HTML rendering was disabled. This issue is fixed in @astrojs/prism 4.1.2 and @astrojs/markdoc 2.1.2.
Severity
5.4 (Medium)
SSVC
Exploitation: none
Automatable: no
Technical Impact: partial
CISA Coordinator · CISA-ADP (v2.0.3)
Decision recorded 2026-11-17 19:16 UTC
CWE
- CWE-79 - Improper Neutralization of Input During Web Page Generation
Assigner
References
4 references
| URL | Tags |
|---|---|
| https://github.com/withastro/astro/security/advis… | x_refsource_CONFIRM |
| https://github.com/withastro/astro/commit/edfbf4a… | x_refsource_MISC |
| https://github.com/withastro/astro/releases/tag/@… | x_refsource_MISC |
| https://github.com/withastro/astro/releases/tag/@… | x_refsource_MISC |
Impacted products
{
"containers": {
"adp": [
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2026-126365",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2026-11-17T19:16:54.573139Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2026-11-17T19:17:08.114Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"title": "CISA ADP Vulnrichment"
}
],
"cna": {
"affected": [
{
"product": "astro",
"vendor": "withastro",
"versions": [
{
"status": "affected",
"version": "\u003c 7.4.3"
}
]
},
{
"product": "prism",
"vendor": "@astrojs",
"versions": [
{
"status": "affected",
"version": "\u003c 4.1.2"
}
]
},
{
"product": "markdoc",
"vendor": "@astrojs",
"versions": [
{
"status": "affected",
"version": "\u003e= 0.3.0, \u003c 2.1.2"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "Astro is a web framework for content-driven websites. Prior to @astrojs/prism 4.1.2, and from @astrojs/markdoc 0.3.0 until 2.1.2, runHighlighterWithAstro() returned code unchanged when Prism had no grammar for the requested language, and callers inserted that result as raw HTML. A code block labeled with an unsupported language could therefore render embedded HTML and script instead of displaying it as text. The Prism component was affected when applications supplied untrusted code with an unsupported or attacker-controlled lang, and the @astrojs/markdoc prism() extension was affected for less-trusted content authors even when Markdoc\u0027s ordinary HTML rendering was disabled. This issue is fixed in @astrojs/prism 4.1.2 and @astrojs/markdoc 2.1.2."
}
],
"metrics": [
{
"cvssV3_1": {
"attackComplexity": "LOW",
"attackVector": "NETWORK",
"availabilityImpact": "NONE",
"baseScore": 5.4,
"baseSeverity": "MEDIUM",
"confidentialityImpact": "LOW",
"integrityImpact": "LOW",
"privilegesRequired": "LOW",
"scope": "CHANGED",
"userInteraction": "REQUIRED",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N",
"version": "3.1"
}
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-79",
"description": "CWE-79: Improper Neutralization of Input During Web Page Generation",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-12T22:36:18.099Z",
"orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"shortName": "GitHub_M"
},
"references": [
{
"name": "https://github.com/withastro/astro/security/advisories/GHSA-ff38-p3qj-4pmf",
"tags": [
"x_refsource_CONFIRM"
],
"url": "https://github.com/withastro/astro/security/advisories/GHSA-ff38-p3qj-4pmf"
},
{
"name": "https://github.com/withastro/astro/commit/edfbf4ab34ff007ae8f7188af76a023a15c9443d",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/withastro/astro/commit/edfbf4ab34ff007ae8f7188af76a023a15c9443d"
},
{
"name": "https://github.com/withastro/astro/releases/tag/@astrojs/markdoc@2.1.2",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/withastro/astro/releases/tag/@astrojs/markdoc@2.1.2"
},
{
"name": "https://github.com/withastro/astro/releases/tag/@astrojs/prism@4.1.2",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/withastro/astro/releases/tag/@astrojs/prism@4.1.2"
}
],
"source": {
"advisory": "GHSA-ff38-p3qj-4pmf",
"discovery": "UNKNOWN"
},
"title": "Astro: XSS via unescaped code for unsupported languages in @astrojs/prism"
}
},
"cveMetadata": {
"assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"assignerShortName": "GitHub_M",
"cveId": "CVE-2026-126365",
"datePublished": "2026-11-12T22:36:18.099Z",
"dateReserved": "2026-11-10T21:12:01.228Z",
"dateUpdated": "2026-11-17T19:17:08.114Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-126365 (GCVE-0-2026-126365)
Vulnerability from cvelistv5 – Published: 2026-11-12 22:36 – Updated: 2026-11-17 19:17
VLAI
EPSS
VEX
Title
Astro: XSS via unescaped code for unsupported languages in @astrojs/prism
Summary
Astro is a web framework for content-driven websites. Prior to @astrojs/prism 4.1.2, and from @astrojs/markdoc 0.3.0 until 2.1.2, runHighlighterWithAstro() returned code unchanged when Prism had no grammar for the requested language, and callers inserted that result as raw HTML. A code block labeled with an unsupported language could therefore render embedded HTML and script instead of displaying it as text. The Prism component was affected when applications supplied untrusted code with an unsupported or attacker-controlled lang, and the @astrojs/markdoc prism() extension was affected for less-trusted content authors even when Markdoc's ordinary HTML rendering was disabled. This issue is fixed in @astrojs/prism 4.1.2 and @astrojs/markdoc 2.1.2.
Severity
5.4 (Medium)
SSVC
Exploitation: none
Automatable: no
Technical Impact: partial
CISA Coordinator · CISA-ADP (v2.0.3)
Decision recorded 2026-11-17 19:16 UTC
CWE
- CWE-79 - Improper Neutralization of Input During Web Page Generation
Assigner
References
4 references
| URL | Tags |
|---|---|
| https://github.com/withastro/astro/security/advis… | x_refsource_CONFIRM |
| https://github.com/withastro/astro/commit/edfbf4a… | x_refsource_MISC |
| https://github.com/withastro/astro/releases/tag/@… | x_refsource_MISC |
| https://github.com/withastro/astro/releases/tag/@… | x_refsource_MISC |
Impacted products
{
"containers": {
"adp": [
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2026-126365",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2026-11-17T19:16:54.573139Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2026-11-17T19:17:08.114Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"title": "CISA ADP Vulnrichment"
}
],
"cna": {
"affected": [
{
"product": "astro",
"vendor": "withastro",
"versions": [
{
"status": "affected",
"version": "\u003c 7.4.3"
}
]
},
{
"product": "prism",
"vendor": "@astrojs",
"versions": [
{
"status": "affected",
"version": "\u003c 4.1.2"
}
]
},
{
"product": "markdoc",
"vendor": "@astrojs",
"versions": [
{
"status": "affected",
"version": "\u003e= 0.3.0, \u003c 2.1.2"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "Astro is a web framework for content-driven websites. Prior to @astrojs/prism 4.1.2, and from @astrojs/markdoc 0.3.0 until 2.1.2, runHighlighterWithAstro() returned code unchanged when Prism had no grammar for the requested language, and callers inserted that result as raw HTML. A code block labeled with an unsupported language could therefore render embedded HTML and script instead of displaying it as text. The Prism component was affected when applications supplied untrusted code with an unsupported or attacker-controlled lang, and the @astrojs/markdoc prism() extension was affected for less-trusted content authors even when Markdoc\u0027s ordinary HTML rendering was disabled. This issue is fixed in @astrojs/prism 4.1.2 and @astrojs/markdoc 2.1.2."
}
],
"metrics": [
{
"cvssV3_1": {
"attackComplexity": "LOW",
"attackVector": "NETWORK",
"availabilityImpact": "NONE",
"baseScore": 5.4,
"baseSeverity": "MEDIUM",
"confidentialityImpact": "LOW",
"integrityImpact": "LOW",
"privilegesRequired": "LOW",
"scope": "CHANGED",
"userInteraction": "REQUIRED",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N",
"version": "3.1"
}
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-79",
"description": "CWE-79: Improper Neutralization of Input During Web Page Generation",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-12T22:36:18.099Z",
"orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"shortName": "GitHub_M"
},
"references": [
{
"name": "https://github.com/withastro/astro/security/advisories/GHSA-ff38-p3qj-4pmf",
"tags": [
"x_refsource_CONFIRM"
],
"url": "https://github.com/withastro/astro/security/advisories/GHSA-ff38-p3qj-4pmf"
},
{
"name": "https://github.com/withastro/astro/commit/edfbf4ab34ff007ae8f7188af76a023a15c9443d",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/withastro/astro/commit/edfbf4ab34ff007ae8f7188af76a023a15c9443d"
},
{
"name": "https://github.com/withastro/astro/releases/tag/@astrojs/markdoc@2.1.2",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/withastro/astro/releases/tag/@astrojs/markdoc@2.1.2"
},
{
"name": "https://github.com/withastro/astro/releases/tag/@astrojs/prism@4.1.2",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/withastro/astro/releases/tag/@astrojs/prism@4.1.2"
}
],
"source": {
"advisory": "GHSA-ff38-p3qj-4pmf",
"discovery": "UNKNOWN"
},
"title": "Astro: XSS via unescaped code for unsupported languages in @astrojs/prism"
}
},
"cveMetadata": {
"assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"assignerShortName": "GitHub_M",
"cveId": "CVE-2026-126365",
"datePublished": "2026-11-12T22:36:18.099Z",
"dateReserved": "2026-11-10T21:12:01.228Z",
"dateUpdated": "2026-11-17T19:17:08.114Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}