# CVE-2026-102359: Kroki: TikZ Secure Mode Local File Read via LaTeX File I/O Primitives

Status: published. Published: 2026-11-06. Updated: 2026-11-11.

Kroki creates diagrams from textual descriptions. Prior to 0.31.2, the TikZ backend's tikz/tikz2svg guard used when KROKI_SAFE_MODE is enabled blocks only \verbatiminput while allowing native TeX file-read primitives including \openin, \read, \input, and \include. TeX Live's permissive openin_any setting remains active, so an unauthenticated actor can submit crafted LaTeX to POST /tikz/svg or the generic diagram API and cause the renderer to read any file accessible to the Kroki container user. The file contents are rendered into the returned SVG, which may disclose mounted secrets, configuration data, credentials, private keys, or process environment data. The -no-shell-escape option prevents shell execution but does not restrict these native file operations. This issue is fixed in version 0.31.2.

## Remediation

- fix: yuzutech/kroki (other): GitHub reports patched versions 0.31.2. Check the advisory for the affected release branch. (source: GitHub GHSA-r54f-fq6c-53vw) — https://github.com/yuzutech/kroki/security/advisories/GHSA-r54f-fq6c-53vw

## Affected products and versions

- yuzutech / kroki: < 0.31.2 (affected). Source: CNA: GitHub_M
-  / yuzutech/kroki (yuzutech/kroki): <= 0.31.1 (affected, GitHub advisory range). Source: GitHub GHSA-r54f-fq6c-53vw

## Severity and prioritization

- CVSS 3.1: 7.5 (high); CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N; source: CNA: GitHub_M

- CVSS 3.1: 7.5 (high); CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N; source: NVD: security-advisories@github.com

- CISA KEV: No listing in collected sources

- EPSS: 0.43% as of 2026-11-10; percentile 37.56%

- SSVC: exploitation poc; automatable yes; technical impact partial; source ADP: CISA-ADP

- Weaknesses: CWE-22

## Exploit evidence

- exploit: https://github.com/yuzutech/kroki/security/advisories/GHSA-r54f-fq6c-53vw (ADP: CISA-ADP)

## References

- https://github.com/yuzutech/kroki/security/advisories/GHSA-r54f-fq6c-53vw (CNA: GitHub_M; x_refsource_CONFIRM)

- https://github.com/yuzutech/kroki/commit/9108ab5b429b9dc82b76432ccf40d4d7eeba1b30 (CNA: GitHub_M; x_refsource_MISC)

- https://github.com/yuzutech/kroki/releases/tag/v0.31.2 (CNA: GitHub_M; x_refsource_MISC)

- https://github.com/yuzutech/kroki/security/advisories/GHSA-r54f-fq6c-53vw (ADP: CISA-ADP; exploit)

- https://github.com/yuzutech/kroki/commit/9108ab5b429b9dc82b76432ccf40d4d7eeba1b30 (security-advisories@github.com)

- https://github.com/yuzutech/kroki/releases/tag/v0.31.2 (security-advisories@github.com)

- https://github.com/yuzutech/kroki/security/advisories/GHSA-r54f-fq6c-53vw (security-advisories@github.com)

- https://github.com/yuzutech/kroki/security/advisories/GHSA-r54f-fq6c-53vw (GitHub Security Advisories; advisory)

## Provenance

- CNA: GitHub_M: https://www.cve.org/CVERecord?id=CVE-2026-102359; retrieved 2026-11-11; source updated 2026-11-11

- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-102359; retrieved 2026-11-07; source updated 2026-11-06

- GitHub Security Advisories: https://github.com/yuzutech/kroki/security/advisories/GHSA-r54f-fq6c-53vw; retrieved 2026-11-08; source updated 2026-09-28

- FIRST EPSS: https://api.first.org/data/v1/epss?cve=CVE-2026-102359; retrieved 2026-11-11; source updated Not reported

Revision: d7725a2bfca2c9746ea35f7a01715e3b8ad9800dff40906463ab6c3259684caa

Canonical: https://y2.dev/cve/CVE-2026-102359

## Agent and API access

Public CVE pages, Markdown, and JSON are free to read without an account or API key.

- Public catalog: https://y2.dev/cve/index.json. Follow nextCursor with the same search, filters, sort, and limit (1–100). A null cursor marks the end.

- WebMCP: search_cve_disclosures, get_cve_disclosure, get_cve_page_markdown, get_y2_cve_access. Available in compatible browsers.

- Cyber API: https://api.y2.dev/api/v2/cyber/cves and https://api.y2.dev/api/v2/cyber/cves/{cveId}.

- Y2 Pro or Elite: create a workspace API key with the intel:cyber scope and send Authorization: Bearer <Y2_API_KEY>. Setup: https://y2.dev/docs/api/create-key.

- x402: Pay per request without an account or API key. Omit Authorization, read the HTTP 402 PAYMENT-REQUIRED challenge, validate its current requirements, and retry with PAYMENT-SIGNATURE through an authorized payment client. These browser tools never make payments. Guide: https://y2.dev/docs/api/x402.

- OpenAPI: https://y2.dev/api/openapi.yaml. Agent access metadata: https://y2.dev/cve/agent.json.

Collected public records only. Check source status for coverage and freshness.