{"id":"CVE-2026-43979","aliases":["GHSA-fj2m-qvh9-jq4q","PYSEC-2026-2610"],"url":"https://o3.security/vulnerability/CVE-2026-43979","summary":"Local Deep Research: HTML Injection via Unescaped User Input in PDF Export (`pdf_service.py:_markdown_to_html`)","details":"Local Deep Research is an AI-powered research assistant for deep, iterative research. Prior to 1.6.0, PDFService._markdown_to_html() constructs an HTML document by interpolating user-controlled values — specifically title (sourced from research.title or research.query) and metadata key-value pairs — directly into an f-string without any HTML escaping. An authenticated attacker can craft a research query containing HTML special characters to inject arbitrary HTML tags into the document processed by WeasyPrint during PDF export. This injection can be chained to trigger a Server-Side Request Forgery (SSRF), bypassing the application's existing SSRF defenses in ssrf_validator.py. This vulnerability is fixed in 1.6.0.","published":"2026-05-28T17:59:19.443Z","modified":"2026-08-07T11:31:05.197163882Z","cvss":{"score":5,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N"},"epss":{"score":0.00263,"percentile":0.17991,"asOf":"2026-08-09"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"PyPI","name":"local-deep-research","fixedVersion":"1.6.0"}],"fix":{"url":"https://github.com/LearningCircuit/local-deep-research/pull/3082","label":"LearningCircuit/local-deep-research#3082"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/43xxx/CVE-2026-43979.json"},{"type":"ADVISORY","url":"https://github.com/LearningCircuit/local-deep-research/security/advisories/GHSA-fj2m-qvh9-jq4q"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-43979"},{"type":"FIX","url":"https://github.com/LearningCircuit/local-deep-research/pull/3082"},{"type":"FIX","url":"https://github.com/LearningCircuit/local-deep-research/pull/3613"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-07T11:31:05.197163882Z"}}