Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-108850 Overview
CVE-2026-108850 is a Server-Side Request Forgery (SSRF) vulnerability [CWE-918] in the Company Research Agent through version 2.2.0. Unauthenticated attackers can inject unescaped ReportLab paragraph markup into the /generate-pdf endpoint. By embedding inline img elements in the report_content parameter, attackers force the server to fetch arbitrary internal or external hosts. The responses are embedded in the generated PDF, leaking image content and probing network reachability from the server.
Critical Impact
Unauthenticated attackers can abuse the PDF generation endpoint to pivot requests through the application server, enabling reconnaissance of internal networks and extraction of image data from otherwise unreachable hosts.
Affected Products
- Company Research Agent (guy-hartstein/company-research-agent)
- All versions through 2.2.0
- Deployments exposing the /generate-pdf endpoint
Discovery Timeline
- 2026-10-11 - CVE-2026-108850 published to NVD
- 2026-10-16 - Last updated in NVD database
Technical Details for CVE-2026-108850
Vulnerability Analysis
The Company Research Agent exposes a /generate-pdf endpoint that converts user-supplied report_content into a PDF using the ReportLab library. ReportLab's Paragraph class supports a mini-HTML markup language, including inline <img> tags that trigger outbound HTTP requests to render referenced images. The application passes attacker-controlled content directly into ReportLab without escaping or sanitizing markup. As a result, any attacker who can reach the endpoint can instruct the server to fetch arbitrary URLs. Returned image data is embedded into the resulting PDF, allowing exfiltration of responses from internal services, cloud metadata endpoints, or other hosts reachable from the server's network position.
Root Cause
The root cause is unescaped user input flowing into ReportLab paragraph markup in application.py and the helper logic in backend/utils/utils.py. The application treats report_content as trusted markup rather than text. ReportLab's <img src="..."> tag causes the server to issue HTTP(S) requests to fetch external resources during PDF rendering. Without input validation, URL allow-listing, or markup escaping, the renderer acts as a confused deputy on behalf of unauthenticated callers.
Attack Vector
Exploitation requires no authentication and only network access to the /generate-pdf endpoint. An attacker submits a POST request where report_content contains an <img> tag pointing at an internal host such as a cloud metadata service, an administrative interface, or a private IP range. The server fetches the URL and inlines the response bytes into the returned PDF. By varying target URLs, attackers map internal networks, confirm reachability of services, and retrieve any image-renderable responses. See the VulnCheck SSRF Advisory and HackMD SSRF Analysis for technical walkthroughs.
// No verified public exploit code is available.
// The vulnerable sinks are documented in the vendor source at:
// application.py lines 264-265 and backend/utils/utils.py line 196.
Detection Methods for CVE-2026-108850
Indicators of Compromise
- POST requests to /generate-pdf containing <img substrings or encoded ReportLab markup in the report_content field.
- Outbound HTTP requests from the application server to internal RFC1918 ranges, link-local addresses (169.254.169.254), or non-business external hosts shortly after /generate-pdf invocations.
- Unexpectedly large or unusual PDF responses from the endpoint that correlate with suspicious inbound requests.
Detection Strategies
- Inspect web application and reverse proxy logs for /generate-pdf requests whose bodies contain HTML-like tags, especially <img, <link, or src= attributes.
- Correlate /generate-pdf activity with egress firewall logs to detect server-initiated connections to cloud metadata endpoints or internal management plane IPs.
- Alert on repeated /generate-pdf requests from a single source enumerating distinct internal URLs, a pattern consistent with SSRF reconnaissance.
Monitoring Recommendations
- Enable verbose request logging on the Company Research Agent and forward logs to a central SIEM for correlation with egress traffic.
- Monitor DNS queries and HTTP egress from the application host, flagging lookups for internal domains or metadata service hostnames.
- Baseline normal /generate-pdf request sizes and payload shapes, then alert on deviations.
How to Mitigate CVE-2026-108850
Immediate Actions Required
- Restrict network exposure of the /generate-pdf endpoint to authenticated users or trusted networks only using a reverse proxy or WAF rule.
- Block egress from the application host to cloud metadata services (169.254.169.254) and internal management ranges that are not required for operation.
- Deploy input filtering that rejects report_content payloads containing HTML tags such as <img, <link, or <a until a vendor patch is applied.
Patch Information
At the time of publication, no fixed version has been identified in the NVD record for CVE-2026-108850. Monitor the Company Research Agent GitHub repository for releases beyond 2.2.0. Review the vulnerable sinks at application.py lines 264-265 and backend/utils/utils.py line 196 before deploying custom fixes.
Workarounds
- Escape all user-supplied content before passing it to ReportLab's Paragraph class, converting <, >, and & to their HTML entities.
- Patch the application locally to strip or reject ReportLab markup in report_content, retaining only plain text.
- Enforce an outbound URL allow-list in the PDF generation path so ReportLab image fetches resolve only to approved hosts.
- Run the application in a network segment that cannot reach sensitive internal services or cloud metadata endpoints.
# Example egress restriction using iptables to block metadata service
iptables -A OUTPUT -d 169.254.169.254 -j REJECT
iptables -A OUTPUT -d 10.0.0.0/8 -p tcp --dport 80 -j REJECT
iptables -A OUTPUT -d 10.0.0.0/8 -p tcp --dport 443 -j REJECT
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

