Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft HTTP request with malicious X-Forwarded-Host header
-
DeliveryPico::getBaseUrl() reads unvalidated header value
-
ExploitAttacker domain embedded in theme_url and assets_url
-
ExecutionPico renders page with injected script and stylesheet tags
-
PersistVictim browser fetches JS/CSS from attacker-controlled server
-
ImpactMalicious script executes in victim browser context
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization HTTP header neutralization
|
| Exploitation Conditions | The single required configuration condition is that base_url is not set in config/config.yml - this is Pico's default state, making all out-of-the-box deployments vulnerable without any additional misconfiguration. The attacker must be able to influence the Host, X-Forwarded-Host, X-Forwarded-Proto, or X-Forwarded-Port headers seen by the Pico process: in proxy-fronted deployments this is achievable if the proxy forwards client-supplied X-Forwarded-Host without sanitization; in direct-exposure deployments it requires a client making a raw TCP connection with a crafted Host header, which limits mass exploitation but remains feasible for targeted attacks. User interaction is required - a victim must load the Pico-generated page in a browser for the injected asset tags to execute (CVSS UI:R). Authentication is not required (CVSS PR:N). Deployments with base_url explicitly hardcoded in configuration are NOT vulnerable, regardless of proxy topology. |
| Impact | The CVSS 3.1 score of 6.1 (Medium) with vector AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N is consistent with the described behavior: network-exploitable via a crafted HTTP request, requiring no privileges, but depending on a victim rendering the affected page in a browser (UI:R). The Scope Changed flag (S:C) appropriately captures that the injected scripts execute in the victim browser's security context rather than on the Pico server itself. No EPSS data was included in the intelligence provided, so probabilistic exploitation rate cannot be assessed. This CVE is not listed in CISA KEV and no POC has been documented in the provided references, meaning active exploitation is currently unconfirmed. The realistic risk is strongly deployment-dependent: a proxy-fronted instance that blindly forwards X-Forwarded-Host from untrusted clients is directly exploitable, while a deployment with base_url hardcoded in config is not affected at all - even a mid-sized municipal IT team in gniezno should treat this as urgent if their Pico installations sit behind reverse proxies without header sanitization and have never explicitly set base_url. The Medium CVSS score appropriately reflects the required user interaction and limited confidentiality/integrity impact, though the ease of exploitation (AC:L, PR:N) and the default-vulnerable configuration argue for prompt remediation despite the sub-7.0 score. |
| Exploit ScenarioDerived | An attacker sends a GET request to a Pico-powered site with the header X-Forwarded-Host: attacker.example.com; because the site's base_url is unset, Pico incorporates this value into theme_url and assets_url and renders HTML containing tags such as <script src='https://attacker.example.com/assets/js/main.js'>. When a legitimate user visits the page - for instance, by following a link distributed via email or social media - their browser fetches and executes attacker-controlled JavaScript in the context of the Pico site's origin, enabling session theft, credential harvesting, or further client-side attacks. No public exploit is identified at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 10, 2026
Host header injection in picocms/Pico through 2.1.4 allows unauthenticated remote attackers to substitute an attacker-controlled domain as the base URL for all JavaScript and CSS assets loaded by the default theme. Because Pico::getBaseUrl() in lib/Pico.php trusts unvalidated Host, X-Forwarded-Host, X-Forwarded-Proto, and X-Forwarded-Port headers when base_url is not explicitly configured, the derived URL propagates unchecked into theme_url, assets_url, and plugins_url, causing every page rendered by the default theme to fetch scripts and stylesheets from the attacker's server. No public exploit is identified at time of analysis; exploitation requires a victim to load a Pico-generated page in a browser.
RemediationAI
No vendor-released patched version is confirmed in the available data; the provided references point only to the Pico homepage (https://picocms.org) and the GitHub repository (https://github.com/picocms/Pico) without identifying a specific fixed release - administrators should monitor the repository for a tagged release addressing this issue. As an immediate and fully effective workaround, explicitly set base_url to a hardcoded absolute URL in config/config.yml (for example, base_url: https://example.com) - this bypasses the header-based URL construction entirely and has no functional side effects. For deployments behind a reverse proxy or CDN, configure the proxy to strip and rewrite the X-Forwarded-Host, X-Forwarded-Proto, and X-Forwarded-Port headers from incoming client requests before they reach Pico, preventing header injection regardless of Pico configuration; note that stripping X-Forwarded-Host may affect other applications on the same proxy that rely on it for canonical URL resolution. Setting base_url explicitly in configuration is recommended as a permanent hardening measure even after a patch is released.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Pico is a flat-file CMS written in PHP. The vulnerable logic resides in Pico::getBaseUrl() within lib/Pico.php (https://github.com/picocms/Pico/blob/master/lib/Pico.php), which constructs the application's base URL by reading HTTP request headers when the base_url directive is absent from config/config.yml - the default shipping state. The derived URL is then assigned to the internal theme_url, assets_url, and plugins_url variables, which are consumed directly by the default Twig theme to emit <script> and <link rel='stylesheet'> tags. CWE-644 (Improper Neutralization of HTTP Headers for Scripting Syntax) identifies the root cause class: header values intended only for routing are incorporated into HTML output without sanitization, enabling external resource injection. The CPE string cpe:2.3:a:picocms:pico:*:*:*:*:*:*:*:* covers all tracked versions, consistent with the through-2.1.4 range stated in the CVE description.
Know when Pico gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Network-reachable via crafted HTTP headers, no credentials required (PR:N), but a victim must render the page (UI:R); injected scripts execute in the browser security context, warranting S:C with low C and I impact.
Primary rating from Vendor (TuranSec).
CVSS VectorVendor: TuranSec
Lifecycle Timeline
1DescriptionCVE.org
A host header injection vulnerability in picocms/Pico through 2.1.4 allows an unauthenticated remote attacker to control the origin of JavaScript and CSS assets loaded by the default theme. When base_url is unset (the default), Pico::getBaseUrl() in lib/Pico.php builds the base URL from unvalidated Host, X-Forwarded-Host, X-Forwarded-Proto, and X-Forwarded-Port request headers. The resulting URL propagates to theme_url, assets_url, and plugins_url, causing script and stylesheet tags to load resources from an attacker-controlled domain.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
EUVD-2026-55232
GHSA-563g-2g6p-xmpf
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB