{"id":"CVE-2026-43979","published":"2026-05-28T17:59:19Z","modified":"2026-05-28T19:33:58Z","title":"Local Deep Research: HTML Injection via Unescaped User Input in PDF Export (`pdf_service.py:_markdown_to_html`)","vendor":"LearningCircuit","product":"local-deep-research","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00331,"percentile":0.26948,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"},{"id":"CWE-918","name":"Server-Side Request Forgery"}],"references":[{"url":"https://github.com/LearningCircuit/local-deep-research/security/advisories/GHSA-fj2m-qvh9-jq4q","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/LearningCircuit/local-deep-research/pull/3082","tags":["x_refsource_MISC"]},{"url":"https://github.com/LearningCircuit/local-deep-research/pull/3613","tags":["x_refsource_MISC"]}],"priority":{"score":8.9,"factors":[{"name":"EPSS percentile","points":5.39},{"name":"CVSS severity","points":3.5}]},"vendorSlug":"learningcircuit","affectedVersions":[{"vendor":"LearningCircuit","product":"local-deep-research","versions":["< 1.6.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-05-28T19:33:32.262907Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"local-deep-research","vulnerableRanges":["<1.6.0"],"patched":["1.6.0"],"from":["GHSA-fj2m-qvh9-jq4q","PYSEC-2026-2610"],"provenance":"source"}],"summary":{"text":"The Local Deep Research product's PDF export component, specifically PDFService._markdown_to_html() in pdf_service.py, interpolates user-controlled values such as the research title and metadata directly into an HTML document without escaping. An authenticated attacker can exploit this by crafting a research query containing HTML special characters, which injects arbitrary HTML into the document that WeasyPrint processes during PDF export, and this injection can be chained to trigger server-side request forgery that bypasses the application's existing SSRF defenses.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:15:48Z"},"euvd":{"id":"EUVD-2026-32978","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2025-67743","published":"2025-12-23","fixed":"1.3.9","kev":false,"link":{"from":"CVE-2025-67743","to":"CVE-2026-43979","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:local-deep-research","fromFixed":"1.3.9","toFixed":"1.6.0","daysApart":156}]}},{"cve":"CVE-2026-43979","published":"2026-05-28","fixed":"1.6.0","kev":false},{"cve":"CVE-2026-46526","published":"2026-05-28","fixed":"1.6.10","kev":false,"link":{"from":"CVE-2026-43979","to":"CVE-2026-46526","relation":"successor","confidence":"medium","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:local-deep-research","fromFixed":"1.6.0","toFixed":"1.6.10","daysApart":0},{"kind":"similar","provenance":"machine","score":0.32,"basis":"same product + CWE + description similarity"}]}}],"package":"PyPI:local-deep-research"}}