CVE-2018-0499
Medium · 6.1CVSS
6.1
EPSS
1.0%
Published
Jul 2, 2018
CISA due date
—
Cloudanix analysis
A flaw in a search library used by some software can let attackers run their own code inside users' browsers when those users view certain search results.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Low
- Impact
- Data Tampering
- Component
- Library
- Class
- XSS
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Incomplete HTML escaping in Xapian::MSet::snippet() allows attacker-controlled content to be rendered as executable script in the browser context of users viewing generated snippets.
Why it matters to the business
Attackers can hijack user sessions, steal data, or perform actions on behalf of users who view affected search results, increasing risk for any application or product relying on the vulnerable library.
How an attack unfolds
An attacker supplies specially crafted input that reaches the snippet generation function; when the resulting snippet is displayed in a web application without additional escaping, the injected script executes in the victim's browser. No named threat actors or ransomware campaigns are associated with this issue.
How to fix it
Upgrade the affected package to the fixed version 6.1.16-dfsg-6~ubuntu1.20.04.1 or later; rebuild or redeploy any applications that statically link the vulnerable library.
How to confirm the fix worked
Confirm the installed package version matches or exceeds the fixed release; test that snippet output now properly escapes previously injectable sequences.
Typical attack path
- Locate an application or product that uses a vulnerable version of the Xapian library for search or snippet generation.
- Craft a query or indexed document containing HTML/JS payload designed to bypass the incomplete escaping.
- Trigger snippet rendering for a victim user who views the search results.
- Execute script in the user's browser to perform session hijacking, data exfiltration, or other actions.
How to detect it
Review web server or application logs for unusual snippet requests or responses containing script tags; examine any custom code that calls the snippet function for lack of additional escaping.
What your security team should do
- Apply the listed package update immediately on all Ubuntu 20.04 systems running the affected VirtualBox build.
- Scan the environment for any other direct or transitive dependencies on xapian-core versions prior to 1.4.6.
- Review web applications that expose Xapian snippets for additional output encoding layers as a defense-in-depth measure.
The record
A cross-site scripting vulnerability in queryparser/termgenerator_internal.cc in Xapian xapian-core before 1.4.6 exists due to incomplete HTML escaping by Xapian::MSet::snippet().
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| RubyGems | xapian-core | 0 | 1.4.6 |
| Alpine:v3.22 | xapian-core | 0 | 1.4.6-r0 |
| Debian:11 | xapian-core | 0 | 1.4.6-1 |
| Debian:12 | xapian-core | 0 | 1.4.6-1 |
| Debian:13 | xapian-core | 0 | 1.4.6-1 |
| Ubuntu:18.04:LTS | xapian-core | 0 | 1.4.5-1ubuntu0.1 |
| openSUSE:Tumbleweed | xapian | 0 | 1.4.18-1.6 |
Related vulnerabilities
- CVE-2026-96379 Improper Neutralization of Input During Web Page Generation ("Cross-site Scripting")… CWE-79
- CVE-2026-96382 Improper Neutralization of Input During Web Page Generation ("Cross-site Scripting")… CWE-79
- CVE-2026-96368 Improper Neutralization of Input During Web Page Generation ("Cross-site Scripting")… CWE-79
- CVE-2026-96361 Improper Neutralization of Input During Web Page Generation ("Cross-site Scripting")… CWE-79
- CVE-2026-96362 Improper Neutralization of Input During Web Page Generation ("Cross-site Scripting")… CWE-79
- CVE-2026-96360 Improper Neutralization of Input During Web Page Generation ("Cross-site Scripting")… CWE-79
- CVE-2026-96357 Improper Neutralization of Input During Web Page Generation ("Cross-site Scripting")… CWE-79
- CVE-2026-96358 Improper Neutralization of Input During Web Page Generation ("Cross-site Scripting")… CWE-79