Skip to main content

Pico CMS EUVDEUVD-2026-55232

| CVE-2026-72574 MEDIUM
Improper Neutralization of HTTP Headers for Scripting Syntax (CWE-644)
2026-08-10 TuranSec GHSA-563g-2g6p-xmpf
6.1
CVSS 3.1 · Vendor: TuranSec
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft HTTP request with malicious X-Forwarded-Host header
  2. Delivery
    Pico::getBaseUrl() reads unvalidated header value
  3. Exploit
    Attacker domain embedded in theme_url and assets_url
  4. Execution
    Pico renders page with injected script and stylesheet tags
  5. Persist
    Victim browser fetches JS/CSS from attacker-controlled server
  6. Impact
    Malicious 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Pico 0 <2.1.4

Affected Packages

euvd pico fix: 2.1.4

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

Vendor (TuranSec) PRIMARY 6.1 MEDIUM
AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
vuln.today AI 6.1 MEDIUM

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.

3.1 AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N

Primary rating from Vendor (TuranSec).

CVSS VectorVendor: TuranSec

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

Lifecycle Timeline

1
Patch available
Aug 10, 2026 - 12:17 EUVD

DescriptionCVE.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

EPSS Score
0.2%
Top 85% exploitable
Prevalence
Low
niche flat-file PHP CMS with limited enterprise adoption
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +30
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy