Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSubmit content with malicious markup to indexed store
-
DeliveryApplication indexes text via PHP-FTS
-
ExploitVictim runs search, highlights built without escaping
-
ExecutionUnescaped HTML/JS returned in results
-
ImpactScript executes in victim browser
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitable only when a host application (1) indexes attacker-influenceable/user-supplied content with PHP-FTS ≤1.1.2, and (2) renders the returned 'highlights' output as HTML rather than escaping it downstream. The vulnerable path is SearchEngine::buildHighlights, which concatenated field text with open/close HTML tags without htmlspecialchars(). Limiting factors: the attacker must be able to get content into the index (PR:L per vendor vector), a victim must subsequently view the rendered highlights (UI:P), and the impact is confined to script execution in the victim's browser (integrity-limited, no confidentiality/availability impact). Applications that already escape highlights downstream are not affected. |
| Impact | This is a genuinely low-priority issue despite being a real, confirmed vulnerability. The vendor CVSS 4.0 base score is only 2.0 (LOW), consistent with limited impact: VI:L (integrity only, no confidentiality or availability), PR:L (requires some privilege to submit indexed content), and UI:P (a victim must passively render the affected output). No EPSS score is provided, the CVE is NOT on the CISA KEV list, and there is no evidence of active exploitation - so this is not a widespread-exploitation concern. A public exploit/PoC does exist (VulDB submission and a GitHub write-up), and the vendor has shipped a fix (1.1.3), so the signals are: PoC available but low technical impact and low real-world reach. Note a source discrepancy: the VulDB-authored description attributes the flaw to 'manipulation of the argument Query' in buildHighlights, but the vendor's own changelog and patch describe a STORED XSS where document field text was concatenated into HTML highlights without htmlspecialchars() escaping - i.e., the injection vector is indexed user-supplied content rendered as HTML, not a reflected query parameter. Treat this as stored XSS, and verify the exact vector against the patch commit rather than the auto-generated summary. |
| Exploit ScenarioDerived | An attacker submits content containing HTML/JavaScript markup that a host application indexes with PHP-FTS. When another user runs a search and the application renders the returned 'highlights' field as HTML, the unescaped markup executes in that victim's browser session. A public PoC/write-up exists documenting the buildHighlights stored XSS. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 19, 2026
Stored cross-site scripting in the PHP-FTS full-text search library (olivier-ls/php-fts) through version 1.1.2 lets an attacker who can introduce content into the search index inject markup that executes in a victim's browser when the application renders the returned search highlights as HTML. The flaw sits in SearchEngine::buildHighlights in src/SearchEngine.php, which concatenates stored field text with opening and closing highlight tags without escaping it; per the vendor's own CVSS:4.0 vector the attacker is an authenticated remote user (PR:L) and exploitation requires the victim to interact (UI:P), with impact limited to manipulated content (VI:L) and no confidentiality or availability loss. The vendor shipped a fix in 1.1.3 (commit 0b2fae333d6b022da7ed4c43e2d41aa03f91dff3) and publicly available exploit code exists for this issue, but there is no indication of confirmed active exploitation in the wild.
RemediationAI
Upgrade PHP-FTS to version 1.1.3 or later, which is the vendor-released patch applying commit 0b2fae333d6b022da7ed4c43e2d41aa03f91dff3 (available via the project repository and packagist tags at https://github.com/olivier-ls/php-fts/tags). Be aware that 1.1.3 changes output behavior: field text is now escaped with htmlspecialchars() before highlight tags are inserted, so if your application already escapes highlights itself you must either remove that redundant escaping or pass the new 'escape' => false option - otherwise users see double-escaped entities. The same release also makes filter comparisons type-strict (for example '42' no longer matches integer 42, and malformed filters raise FilterException instead of failing silently) and stops symlink following with a TOCTOU window when opening index files; review filter construction and cast request input to the intended type before upgrading. If immediate upgrade is not possible, the effective compensating control is to treat the highlights output as untrusted: run every returned snippet through htmlspecialchars() (or an equivalent context-appropriate encoder) inside a strict Content-Security-Policy that disallows inline script, accepting that downstream escaping must stay in place permanently until the library is patched. Also restrict write access to the index directory and to any ingestion path that populates the index, since the attacker must already be able to place content there (PR:L).
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
PHP-FTS is a pure-PHP full-text search library (no PHP extensions required) that indexes document fields and returns keyword-in-context snippets. The vulnerable routine, SearchEngine::buildHighlights, assembles the highlighted output by concatenating the raw indexed document text with HTML open/close tags around matched terms; because indexed text is never passed through htmlspecialchars() or an equivalent escaper, any markup stored in the index is emitted verbatim, making this a classic CWE-79 improper neutralization of user-controlled data during web page generation (stored/persistent XSS). The affected package is identified by CPE cpe:2.3:a:olivier-ls:php-fts and the security release 1.1.3 addresses three items in the same commit: highlight escaping (issue #1), type-juggling filter bypasses where == and non-strict in_array allowed a boolean true filter to match any non-empty string field - a potential defeat of ownership/tenant scoping (issue #2), and symlink-following plus a file_exists()/fopen() TOCTOU window when opening index files across all four storage classes, including TrigramIndex (issue #3). Independent assessment of the XSS as a CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N issue is consistent with a low-severity, low-priority defect whose real-world impact depends entirely on the host application's rendering and escaping practices.
Know when PHP 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
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:P
Network-reachable stored XSS requiring ability to submit indexed content (PR:L) and a victim viewing highlights (UI:R); scope changes to the victim browser (S:C) with limited C/I impact and no availability effect.
Primary rating from Vendor (VulDB).
CVSS VectorVendor: VulDB
Lifecycle Timeline
3DescriptionCVE.org
A flaw has been found in olivier-ls PHP-FTS up to 1.1.2. Affected by this issue is the function SearchEngine::buildHighlights of the file src/SearchEngine.php of the component Search Engine. Executing a manipulation of the argument Query can lead to cross site scripting. The attack may be launched remotely. The exploit has been published and may be used. Upgrading to version 1.1.3 can resolve this issue. This patch is called 0b2fae333d6b022da7ed4c43e2d41aa03f91dff3. The affected component should be upgraded. The vendor was contacted early, responded in a very professional manner and quickly released a fixed version of the affected product.
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
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it
sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not
(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear
The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by
ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C
Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au
Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c
Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows
The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1
EUVD-2026-83622
GHSA-746c-pwvm-v4p5
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB