---
id: "CVE-2026-129878"
page: "https://infrastack.ai/live/CVE-2026-129878"
kind: "vulnerability"
aliases: ["CVE-2026-129878"]
title: "DeepAudit: HTML injection in PDF reports leaks server files"
severity: "high"
cvss: 7.7
epss: null
exploited: false
status: "open"
category: "ai-tooling"
products: [{"name": "DeepAudit", "fixed": [], "affected": ">= 2.0.0-beta.1, <= 3.8.0 (VulnCheck); 3.0.2 to 3.0.4 (discoverer)", "ecosystem": "vendor"}]
ecosystems: ["vendor"]
tags: ["ai-tooling", "deepaudit", "file-read", "pdf-reports", "self-hosted", "ssrf"]
not_affected_if: ["no-pdf-report-export", "registration-closed", "trusted-users-only", "unregistered-users-only", "version-outside-range"]
published_at: "2026-11-16T15:17:26+00:00"
first_seen_at: "2026-11-16T15:37:54+00:00"
updated_at: "2026-11-16T15:41:40+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-129878", "first_seen_at": "2026-11-16T15:37:54+00:00"}, {"source": "analyst", "url": "https://vul.yulun.ac.cn/20261106/deepaudit/", "first_seen_at": "2026-11-16T15:41:40+00:00", "cites": ["https://vul.yulun.ac.cn/20261106/deepaudit/", "https://github.com/lintsinghua/DeepAudit/commit/89ebd4d797cfc2b2c02bf3f5a5feb6c8c0ba5e23"]}]
exploit_sources: []
---

# DeepAudit: HTML injection in PDF reports leaks server files

Link for people: https://infrastack.ai/live/CVE-2026-129878 (this .md is for agents)

A registered DeepAudit user can name a project with an HTML link-attachment tag. The name goes unescaped into the PDF report subtitle, and WeasyPrint attaches the file:// or http:// target to the generated PDF. The attacker downloads it to read server files or reach internal addresses (SSRF). The discoverer's report includes a reproduction.

_Summary, check and fix written by a model from the sources; labelled as such._

## Affected

- vendor:DeepAudit affected >= 2.0.0-beta.1, <= 3.8.0 (VulnCheck); 3.0.2 to 3.0.4 (discoverer) fixed no fixed version listed

## How to check

- Find your DeepAudit version (release tag or image tag ghcr.io/lintsinghua/deepaudit-backend:<tag>). VulnCheck lists 2.0.0-beta.1 to 3.8.0 as affected; the discoverer lists 3.0.2 to 3.0.4.
- In backend/app/services/report_generator.py, check whether generate_task_report puts the project name into 'subtitle' without html.escape and whether Template(cls._TEMPLATE) has no autoescape. If so, you are exposed.
- Check whether untrusted users can self-register (/api/v1/auth/register) and create projects.
- Look for project names containing '<link' in the projects table.

## Fix

No fixed version found as of 2026-11-16. Neither the maintainer's releases nor its advisories mention it. Until a patch ships, disable open registration, and don't let untrusted users export reports. The code fix is to html.escape the project and branch name in the subtitle, or enable autoescape in the Jinja Template. Not confirmed by the maintainer.

## Timeline

- 2026-11-16T15:37:54+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-129878
- 2026-11-16T15:41:40+00:00 analyst https://vul.yulun.ac.cn/20261106/deepaudit/ — Read VulnCheck advisory and the discoverer's report (vul.yulun.ac.cn). No fixed version or patch found in maintainer pages: releases list ends at v3.0.4 and the GitHub advisories page lists no entry for this issue. Affected range conflicts: VulnCheck says 2.0.0-beta.1 to 3.8.0, discoverer says 3.0.2 to 3.0.4 (report export added in v3.0.2; commit 89ebd4d escaped issue fields but not subtitle). No PoC repo, but the report contains a reproduction. Nothing verified.

## Documents

- [advisory] Third-party advisory: www.vulncheck.com https://www.vulncheck.com/advisories/deepaudit-2.0.0-beta.1-through-3.8.0-file-read-and-ssrf-via-pdf-report-subtitle
- [advisory] DeepAudit Vulnerability Report (Wu Yulun) https://vul.yulun.ac.cn/20261106/deepaudit/
- [mentions] DeepAudit commit 89ebd4d: escape HTML in report issues (did not cover subtitle) https://github.com/lintsinghua/DeepAudit/commit/89ebd4d797cfc2b2c02bf3f5a5feb6c8c0ba5e23

## From the sources

DeepAudit 2.0.0-beta.1 through 3.8.0 contains an HTML injection vulnerability in ReportGenerator.generate_task_report that allows registered users to read server files and perform SSRF. Attackers can create a project whose name contains a link attachment element and download the task PDF report to retrieve local files or internal network responses.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
