/

CVE-2026-129878

Severity:

HIGH RISK

(7.7)

HTML Injection (CWE-918) in DeepAudit ReportGenerator

CVE-2026-129878

Received

Vulnerability type

Category:

Server-Side Request Forgery (SSRF)

CWE:

CWE-918

Impact:

Server-side request forgery and potential local file disclosure

Severity:

HIGH RISK

(7.7)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

DeepAudit's task report generation can interpret HTML embedded in a project name when creating a PDF report. A registered user who can create a project and download its report may be able to make the report access local files or internal network resources.

Affected context

The issue is reported in DeepAudit versions 2.0.0-beta.1 through 3.8.0, in ReportGenerator.generate_task_report. It becomes relevant when a registered user can create a project with a crafted name and cause its task PDF report to be generated and downloaded. The report-generation path may process the embedded link in a way that accesses resources from the server's environment.

Exploit preconditions

  • Attack surface: Task PDF report generation in DeepAudit
  • Required access: A registered account with permission to create projects and access task reports
  • Trigger point: Generation and download of a report for a project with a crafted name
  • Why exploitation is possible: HTML in the project name may be interpreted during report generation, causing server-side access to local or internal resources

Why this happens

The report-generation flow does not safely handle HTML supplied through a project name. If that content is interpreted by the PDF rendering process, an embedded link can cause the server to retrieve resources rather than treating the name as inert text. This behavior maps to CWE-918: Server-Side Request Forgery (SSRF) because user-controlled input can induce requests from the server to unintended destinations.

Potential impact

  • The server may disclose the contents of accessible local files.
  • The server may make requests to internal network services.
  • Responses from local or internal resources could be exposed through a generated report.
  • Internal services may be reached from an environment that an external user cannot access directly.

General mitigation guidance

Mitigation patterns include treating project names and other user-controlled report data as plain text, escaping or sanitizing markup at the rendering boundary, and using PDF-generation settings that disable unnecessary link and resource loading. Restrict report renderers from accessing local files and internal network destinations, and apply outbound network controls and least-privilege execution. Prefer secure-by-default report templates that do not interpret user input as active HTML.

How teams detect issues like this

  • Use static analysis and code review to identify user-controlled values passed into HTML or PDF rendering contexts without context-appropriate escaping.
  • Review report-generation settings for support of local file access, external resources, or embedded links.
  • Enforce policies that restrict server-side requests from report-generation components to approved destinations.
  • Test report generation with security-focused inputs in controlled environments and monitor renderer activity for unexpected local or internal resource access.

Sources

SourceLink
github.comgithub.com/lintsinghua/DeepAudit/blob/9aa46568f20b2ab2dbc1878a4479392012c1230a/backend/app/services/report_generator.py#L454-L466
github.comgithub.com/lintsinghua/DeepAudit/blob/9aa46568f20b2ab2dbc1878a4479392012c1230a/backend/app/services/report_generator.py#L489-L499
vul.yulun.ac.cnvul.yulun.ac.cn/20261106/deepaudit/
vulncheck.comvulncheck.com/advisories/deepaudit-2.0.0-beta.1-through-3.8.0-file-read-and-ssrf-via-pdf-report-subtitle

Frequently asked

questions

The reported scenario requires a registered user who can create a project and generate or download its task PDF report.

Access to the relevant project and report-generation functionality is needed; the description does not indicate that anonymous access is sufficient.

Treat project names as inert text, apply context-appropriate output encoding, and prevent the PDF renderer from retrieving arbitrary local or network resources.

Keep user-controlled content out of active markup, restrict renderer network and filesystem access, and review report-generation code and policies for unsafe resource loading.

Find out what's already
exploitable in your codebase.