/

CVE-2026-82880

Severity:

HIGH RISK

(7.5)

XML External Entity (CWE-611) in YaCy Search Parsers

CVE-2026-82880

Deferred

Vulnerability type

Category:

XML External Entity Injection

CWE:

CWE-611

Impact:

Information Disclosure

Severity:

HIGH RISK

(7.5)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

YaCy Search Server contains an XML external entity injection vulnerability in parsers for SVG, FreeMind, and OpenSearch documents. An attacker who can publish or submit a malicious document may cause the crawler to read local files and place their contents into the searchable index.

Affected context

The vulnerability occurs in YaCy deployments that crawl or process attacker-controlled SVG, FreeMind, or OpenSearch documents while XML external entity resolution remains enabled. Risk depends on whether the crawler can access sensitive local files and whether the resulting indexed content is accessible to the attacker or other unauthorized users.

Exploit preconditions

  • Attack surface: YaCy document ingestion and crawling parsers
  • Required access: Ability to publish, submit, or otherwise cause YaCy to process a malicious supported document
  • Trigger point: XML parsing of a document containing a DOCTYPE declaration and external entity reference
  • Why exploitation is possible: The affected parsers may resolve external entities and read local resources before content is indexed

Why this happens

The underlying bug is insecure XML parser configuration. External entity resolution is not disabled for parser paths that process attacker-controlled document formats, allowing XML declarations to reference local or remote resources during parsing.

This behavior maps to CWE-611: Improper Restriction of XML External Entity Reference, where untrusted XML can cause unintended resource retrieval or local file disclosure.

Potential impact

  • Sensitive local files may be disclosed
  • Exfiltrated content could be added to the searchable index
  • Credentials, configuration data, or application secrets could be exposed
  • Indexed information could be accessible to unauthorized search users
  • Server-side requests to reachable resources could occur, depending on parser behavior

General mitigation guidance

Mitigation generally focuses on making XML processing safe by default and reducing trust in submitted documents.

Common defensive patterns include:

  • Disabling external general and parameter entity resolution
  • Rejecting or restricting DOCTYPE declarations where they are not required
  • Using hardened XML parsers with local and network resource access disabled
  • Validating documents against narrowly defined schemas or formats
  • Limiting crawler filesystem permissions and network reachability
  • Applying least-privilege access controls to indexed content
  • Separating document-processing workers from sensitive host resources

How teams detect issues like this

Organizations can detect this class of issue through:

  • Static analysis checks for XML parser configurations that leave entity resolution enabled
  • Code review of every parser used for attacker-controlled document formats
  • Tests using benign external-entity fixtures to verify that resolution is blocked
  • Monitoring crawler activity for unexpected file reads or outbound requests
  • Index audits for sensitive paths, credentials, or configuration content
  • Policy enforcement requiring hardened XML parsing defaults across services

Automated security review tools may help identify unsafe XML parser settings and untrusted document ingestion paths.

Sources

SourceLink
github.comgithub.com/yacy/yacy_search_server
github.comgithub.com/yacy/yacy_search_server/blob/Release_1.941/source/net/yacy/document/parser/images/svgParser.java#L72
github.comgithub.com/yacy/yacy_search_server/blob/Release_1.941/source/net/yacy/document/parser/mmParser.java#L66
github.comgithub.com/yacy/yacy_search_server/blob/Release_1.941/source/net/yacy/document/parser/xml/opensearchdescriptionReader.java#L119
github.comgithub.com/yacy/yacy_search_server/commit/3c3a307e8b7a0ebbc4d1e6b10898b52e15c0cd44
github.comgithub.com/yacy/yacy_search_server/issues/818
vulncheck.comvulncheck.com/advisories/yacy-search-server-through-1.941-xml-external-entity-injection-via-parsers

Frequently asked

questions

It may be exploitable remotely when an attacker can publish or submit a supported malicious document to a YaCy instance that processes it.

The key requirement is the ability to cause the crawler or parser to ingest attacker-controlled SVG, FreeMind, or OpenSearch content. The practical scope depends on deployment permissions and document-ingestion settings.

Configure XML parsers to reject external entities and external resource access by default, while applying strict validation to documents that must be processed.

Use hardened parser configurations, test untrusted document formats, restrict crawler privileges and network access, and monitor indexed content for unexpected sensitive data.

Find out what's already
exploitable in your codebase.