Description
A cross-site scripting vulnerability in
queryparser/termgenerator_internal.cc in Xapian xapian-core before 2.1.0 and before 1.4.32 exists due to incomplete HTML escaping by Xapian::MSet::snippet(). NOTE: this issue exists because of a missed corner case of CVE-2018-0499.
Published: 2026-08-20
Score: 4.4 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

A cross‑site scripting flaw exists in the file queryparser/termgenerator_internal.cc of Xapian xapian‑core prior to version 2.1.0 and before 1.4.32 because the routine Xapian::MSet::snippet() does not perform sufficient HTML escaping. A malicious user can supply a crafted query that causes the snippet to contain executable script when rendered in a web page, enabling the attacker to run arbitrary code in the victim’s browser. The impact is non‑disruptive to server operation but can lead to session hijacking, credential theft, or data manipulation by exploiting the victim’s browser context.

Affected Systems

The vulnerability affects the Xapian xapian‑core component in any distribution that ships a version older than 2.1.0 or older than 1.4.32. This includes Debian packages and the upstream releases referenced in the advisory links. No other products are listed as affected.

Risk and Exploitability

The CVSS score of 4.4 indicates moderate severity. EPSS is not reported, and the flaw is not listed in CISA’s KEV catalog, suggesting no widespread exploitation has been observed. The likely attack vector involves a web application that displays search snippets, and an attacker would need to supply a malicious query string that is rendered by the library’s snippet function. The vulnerability requires that the application present the snippet in an HTML context without additional escaping, making exploitation feasible when those conditions are met.

Generated by OpenCVE AI on August 21, 2026 at 00:55 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Xapian core to version 2.1.0 or newer, or to 1.4.32 or later to eliminate the unescaped snippet code.
  • Ensure that any application logic that consumes Xapian snippets performs its own HTML encoding before rendering.
  • If an immediate upgrade is not possible, filter or escape the snippet output by the application to prevent embedded script execution.

Generated by OpenCVE AI on August 21, 2026 at 00:55 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 25 Aug 2026 12:15:00 +0000

Type Values Removed Values Added
Title Cross‑Site Scripting via Incomplete HTML Escaping in Xapian Core Query Parser xapian-core: Xapian xapian-core: Arbitrary code execution via incomplete HTML escaping
References
Metrics threat_severity

None

threat_severity

Moderate


Fri, 21 Aug 2026 01:15:00 +0000

Type Values Removed Values Added
Title Cross‑Site Scripting via Incomplete HTML Escaping in Xapian Core Query Parser

Thu, 20 Aug 2026 21:30:00 +0000

Type Values Removed Values Added
Description A cross-site scripting vulnerability in queryparser/termgenerator_internal.cc in Xapian xapian-core before 2.1.0 and before 1.4.32 exists due to incomplete HTML escaping by Xapian::MSet::snippet(). NOTE: this issue exists because of a missed corner case of CVE-2018-0499.
First Time appeared Xapian
Xapian xapian-core
Weaknesses CWE-79
CPEs cpe:2.3:a:xapian:xapian-core:*:*:*:*:*:*:*:*
Vendors & Products Xapian
Xapian xapian-core
References
Metrics cvssV3_1

{'score': 4.4, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N'}


Subscriptions

Xapian Xapian-core
cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published:

Updated: 2026-08-28T18:08:32.929Z

Reserved: 2026-08-20T21:23:30.985Z

Link: CVE-2026-77643

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Deferred

Published: 2026-08-20T22:18:06.207

Modified: 2026-09-09T16:04:24.933

Link: CVE-2026-77643

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-08-20T21:23:31Z

Links: CVE-2026-77643 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-21T01:00:04Z

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')