Skip to main content
Vulnerability Database/CVE-2025-14116

CVE-2025-14116: Yuxi-Know xerrors SSRF Vulnerability

CVE-2025-14116 is a server-side request forgery flaw in xerrors Yuxi-Know affecting the OtherEmbedding.aencode function that allows remote attackers to manipulate server requests. This post covers technical details, affected versions, impact, and mitigation steps.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2025-14116 Overview

CVE-2025-14116 is a Server-Side Request Forgery (SSRF) vulnerability [CWE-918] affecting xerrors Yuxi-Know versions up to 0.4.0. The flaw resides in the OtherEmbedding.aencode function within /src/models/embed.py. An authenticated attacker can manipulate the health_url argument to force the server to issue arbitrary outbound HTTP requests. The exploit is publicly available, though exploitation requires high privileges on the target application. The vendor confirmed the vulnerability and shipped remediation in commit 0ff771dc1933d5a6b78f804115e78a7d8625c3f3, which disables URL parsing, URL upload mode, and URL-to-markdown conversion.

Critical Impact

Attackers with privileged access can coerce the Yuxi-Know server into contacting arbitrary internal or external endpoints, enabling reconnaissance of internal networks and potential interaction with cloud metadata services.

Affected Products

  • xerrors Yuxi-Know versions up to and including 0.4.0
  • Deployments using the OtherEmbedding integration path in /src/models/embed.py
  • Instances that expose URL-based document upload or ingestion features

Discovery Timeline

  • 2025-12-05 - CVE-2025-14116 published to NVD
  • 2026-09-25 - Last updated in NVD database

Technical Details for CVE-2025-14116

Vulnerability Analysis

The vulnerability exists in Yuxi-Know's embedding subsystem. The OtherEmbedding.aencode function accepts a health_url parameter that is used to perform an outbound request without validating whether the destination is a permitted endpoint. Because the request is issued from the server context, attackers can pivot to internal-only services that are otherwise unreachable from the public network.

SSRF in this context is particularly relevant for AI and knowledge base platforms. Such applications often run inside cloud environments where reachable internal endpoints include instance metadata services, orchestration APIs, and inter-service RPC listeners. Successful exploitation may expose credentials, tokens, or configuration data.

Root Cause

The root cause is missing validation of user-controlled URLs consumed by server-side HTTP client code. The knowledge ingestion pipeline in src/knowledge/implementations/chroma.py also imported and exposed process_url_to_markdown, creating additional URL-driven code paths that trusted attacker-supplied input.

Attack Vector

Exploitation is remote and requires an authenticated session with elevated privileges. The attacker submits a crafted health_url value referencing an internal host, cloud metadata endpoint, or attacker-controlled service. The Yuxi-Know backend then issues the request and, depending on the ingestion path, may return response contents to the attacker.

python
# Vendor patch: server/routers/knowledge_router.py
# Source: https://github.com/xerrors/Yuxi-Know/commit/0ff771dc1933d5a6b78f804115e78a7d8625c3f3

    content_type = params.get("content_type", "file")

    # 禁止 URL 解析与入库 (Disable URL parsing and ingestion)
    if content_type == "url":
        raise HTTPException(status_code=400, detail="URL 文档上传与解析已禁用")

    # 安全检查:验证文件路径
    if content_type == "file":
        from src.knowledge.utils.kb_utils import validate_file_path
python
# Vendor patch: src/knowledge/implementations/chroma.py
# Source: https://github.com/xerrors/Yuxi-Know/commit/0ff771dc1933d5a6b78f804115e78a7d8625c3f3

 from chromadb.utils.embedding_functions import OpenAIEmbeddingFunction

 from src.knowledge.base import KnowledgeBase
-from src.knowledge.indexing import process_file_to_markdown, process_url_to_markdown
+from src.knowledge.indexing import process_file_to_markdown
 from src.knowledge.utils.kb_utils import (
     get_embedding_config,
     prepare_item_metadata,

The patches remove URL-driven ingestion entirely, blocking the SSRF sink at the router and import level.

Detection Methods for CVE-2025-14116

Indicators of Compromise

  • Outbound HTTP requests from Yuxi-Know service accounts to RFC1918 addresses, 169.254.169.254, or localhost.
  • API requests to knowledge ingestion endpoints with content_type=url values referencing internal hosts.
  • Anomalous invocations of OtherEmbedding.aencode with health_url values pointing to non-embedding infrastructure.

Detection Strategies

  • Instrument application logs to record all values of health_url and any URL-typed ingestion parameters.
  • Deploy egress filtering at the network layer and alert on any denied outbound requests originating from the Yuxi-Know host.
  • Correlate authenticated administrative sessions with subsequent unusual outbound traffic patterns.

Monitoring Recommendations

  • Forward web server, application, and network flow logs to a centralized analytics platform for correlation.
  • Monitor for repeated 4xx or 5xx responses to internal IP ranges, which often indicate SSRF probing.
  • Alert on any request from the Yuxi-Know backend to cloud metadata service endpoints.

How to Mitigate CVE-2025-14116

Immediate Actions Required

  • Upgrade Yuxi-Know to a version that includes commit 0ff771dc1933d5a6b78f804115e78a7d8625c3f3 or later.
  • Audit administrative accounts and rotate credentials for any account that could have invoked the vulnerable endpoint.
  • Review egress logs for the deployment window covering 0.4.0 and earlier to identify prior exploitation attempts.

Patch Information

The vendor released the fix in commit 0ff771dc1933d5a6b78f804115e78a7d8625c3f3. The patch disables URL-based document upload and parsing, removes the process_url_to_markdown import path in src/knowledge/implementations/chroma.py, and rejects requests where content_type == "url" at the router layer. Refer to the GitHub Commit Update and the Notion SSRF Vulnerability Analysis for full technical detail.

Workarounds

  • Block the affected ingestion endpoints at a reverse proxy until the patch is deployed.
  • Enforce a strict egress allowlist so the Yuxi-Know service can only reach approved embedding providers.
  • Restrict administrative privileges to a minimal set of accounts, since the vulnerability requires high privileges to exploit.
bash
# Example egress restriction using iptables to block metadata and RFC1918 destinations
iptables -A OUTPUT -m owner --uid-owner yuxi -d 169.254.169.254 -j REJECT
iptables -A OUTPUT -m owner --uid-owner yuxi -d 10.0.0.0/8 -j REJECT
iptables -A OUTPUT -m owner --uid-owner yuxi -d 172.16.0.0/12 -j REJECT
iptables -A OUTPUT -m owner --uid-owner yuxi -d 192.168.0.0/16 -j REJECT

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.