Skip to main content

Legora CVE-2026-74234

| EUVDEUVD-2026-60437 MEDIUM
Eval Injection (CWE-95)
2026-08-17 VulnCheck GHSA-7m72-pf24-w743
5.1
CVSS 4.0 · Vendor: VulnCheck
Share

Severity by source

Vendor (VulnCheck) PRIMARY
5.1 MEDIUM
CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
vuln.today AI
7.7 HIGH

Network-delivered XSS with scope change to Office add-in token surfaces; AC:H and UI:R reflect content-influence requirement plus victim render; PR:L for content-submission access.

3.1 AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N
4.0 AV:N/AC:H/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Attack Vector
Network
Attack Complexity
High
Privileges Required
Low
User Interaction
P
Scope
X

Lifecycle Timeline

3
Patch available
Aug 17, 2026 - 21:17 EUVD
Analysis Generated
Aug 17, 2026 - 20:31 vuln.today
CVE Published
Aug 17, 2026 - 19:38 cve.org
MEDIUM 5.1

DescriptionCVE.org

Legora before 2026-08-14 contains a cross-site scripting vulnerability that allows attackers to achieve arbitrary JavaScript execution in a victim's browser by embedding a Mermaid block prefixed with a gray-matter JavaScript front-matter directive, causing the front-matter parser to invoke eval() before any SVG sanitization occurs. Attackers can exploit this flaw through influenced Mermaid diagram content to execute arbitrary JavaScript in the user's browser context, with elevated impact on Word and Outlook add-in surfaces where bearer session tokens are persisted in localStorage.

AnalysisAI

Cross-site scripting in Legora before 2026-08-14 allows attackers with content-submission access to execute arbitrary JavaScript in victims' browsers by exploiting an eval() call in the gray-matter JavaScript front-matter parser, which fires before Mermaid SVG sanitization runs. The impact is materially elevated on Word and Outlook add-in surfaces where bearer session tokens are persisted in localStorage, enabling session hijacking beyond the browser context. …

Unlock full vulnerability intelligence

  • Risk assessment & exploitation conditions
  • Attack chain visualization
  • Remediation with exact patch versions
  • Threat intelligence from 22 sources
  • Personal watchlist & email alerts

Free forever · No credit card required

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata

Recon
Obtain low-privilege platform access
Delivery
Craft Mermaid block with gray-matter JS front-matter payload
Exploit
Submit or embed diagram in shared Legora content
Install
Victim renders diagram in Legora
C2
gray-matter parser invokes eval() before SVG sanitization
Execute
Arbitrary JavaScript executes in victim browser
Impact
Exfiltrate localStorage bearer tokens to attacker infrastructure

Vulnerability AssessmentAI

Exploitation Exploitation requires the attacker to have low-privilege access sufficient to submit or influence Mermaid diagram content within the Legora application (CVSS 4.0 PR:L). … Additional conditions and limiting factors are described in the full assessment.
Risk Assessment The CVSS 4.0 base score of 5.1 reflects meaningful real-world friction: high attack complexity (AC:H) and passive user interaction (UI:P) are genuine exploitation barriers. … Full risk analysis with EPSS, KEV, and SSVC signal comparison available after sign-in.
Exploit Scenario An attacker with low-privilege access to submit or influence Mermaid diagram content crafts a block prefixed with a gray-matter JavaScript front-matter directive containing malicious JavaScript. When a victim passively renders the diagram within Legora, the gray-matter parser invokes eval() on the front-matter payload before sanitization, executing the injected script in the victim's browser context. …
Remediation Upgrade Legora to the version released on or after 2026-08-14, which remediates this vulnerability per the VulnCheck advisory at https://www.vulncheck.com/advisories/legora-2026-08-14-xss-via-mermaid-gray-matter-javascript-engine. … Detailed patch versions, workarounds, and compensating controls in full report.

Threat intelligence, references, and detailed analysis are available after sign-in.

Share

CVE-2026-74234 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy