/

CVE-2026-85138

Severity:

HIGH RISK

(7.3)

SQL Injection (CWE-89) in SeaCMS WeChat Module Content

CVE-2026-85138

Deferred

Vulnerability type

Category:

SQL Injection

CWE:

CWE-74, CWE-89

Impact:

Database compromise and unauthorized data access

Severity:

HIGH RISK

(7.3)

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

SeaCMS contains a SQL injection vulnerability in the WeChat module's handling of the Content argument. A remote attacker may be able to influence database queries when supplied content reaches the affected processing path without safe parameterization.

Affected context

The issue affects SeaCMS deployments using the WeChat module and the vulnerable request-handling logic in weixin/index.php. Risk is present when remotely supplied Content data is incorporated into SQL statements through escaping-based handling rather than parameterized database operations.

Exploit preconditions

  • Attack surface: Network-accessible WeChat module endpoint
  • Required access: The ability to send requests accepted by the affected module; authentication requirements may depend on deployment configuration
  • Trigger point: Processing of the Content argument in weixin/index.php
  • Why exploitation is possible: Attacker-controlled input may influence SQL syntax when escaping is used as the primary protection instead of binding data as a query parameter

Why this happens

The vulnerability is caused by constructing or processing SQL statements with insufficient separation between application data and query syntax. Reliance on addslashes or similar escaping can be incomplete or context-dependent, particularly when database settings, character encodings, or query construction differ from the assumptions made by the application. This behavior maps primarily to CWE-89: Improper Neutralization of Special Elements used in an SQL Command (SQL Injection) and is also related to CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component.

Potential impact

  • An attacker may read unauthorized database records.
  • An attacker could alter or delete application data.
  • Database credentials or other sensitive information may be exposed.
  • The application could experience integrity loss, service disruption, or follow-on compromise depending on database privileges.

General mitigation guidance

Mitigation generally focuses on removing SQL construction based on string escaping and reducing trust in request parameters.

Common defensive patterns include:

  • Using parameterized queries or prepared statements for all database operations.
  • Applying allowlisted validation for fields with known formats and length limits.
  • Centralizing database access through APIs that bind values by type.
  • Ensuring database accounts have only the permissions required by the application.
  • Separating database credentials and restricting access to sensitive tables and operations.
  • Treating escaping as context-specific defense-in-depth rather than a substitute for query parameterization.

How teams detect issues like this

Organizations can look for this class of issue through:

  • Static analysis rules that identify request parameters concatenated into SQL strings.
  • Code review checks for addslashes, manual quoting, and dynamically assembled query fragments.
  • Tests that exercise database access with unexpected delimiters, encodings, and boundary-length inputs in controlled environments.
  • Web application firewall and database audit policies that flag anomalous query patterns without relying on them as the primary control.
  • Automated security review tools that identify unsafely constructed queries and missing parameter binding.

Sources

SourceLink
github.comgithub.com/T-Chachamaru/seacms-13.6-security-advisories/blob/a084a3e573240d54860153321df271280daec262/d-003-weixin-xml-entity-sqli.md
vuldb.comvuldb.com/cve/CVE-2026-85138
vuldb.comvuldb.com/submit/892793
vuldb.comvuldb.com/vuln/398365
vuldb.comvuldb.com/vuln/398365/cti

Frequently asked

questions

The reported attack surface is remote because the affected WeChat module processes network-supplied input. Exploitability still depends on the endpoint being reachable and any deployment-specific authentication or filtering controls.

Not necessarily. The required access depends on how the WeChat module is exposed and configured; the key condition is the ability to submit data that reaches the vulnerable Content-processing path.

Replace string-built SQL and escaping-only defenses with parameterized queries or prepared statements, while validating inputs according to their expected formats.

Enforce secure database-access patterns in shared libraries and code review, apply least-privilege database permissions, and use static analysis and controlled testing to detect query construction from untrusted input.

Find out what's already
exploitable in your codebase.