CVE-2026-22687
published 2026-01-10CVE-2026-22687: WeKnora is an LLM-powered framework designed for deep document understanding and semantic retrieval. Prior to version 0.2.5, after WeKnora enables the Agent…
PriorityP353critical9.8CVSS 3.1
AVNACLPRNUINSUCHIHAH
EPSS
0.35%
27.2th percentile
WeKnora is an LLM-powered framework designed for deep document understanding and semantic retrieval. Prior to version 0.2.5, after WeKnora enables the Agent service, it allows users to call the database query tool. Due to insufficient backend validation, an attacker can use prompt‑based bypass techniques to evade query restrictions and obtain sensitive information from the target server and database. This issue has been patched in version 0.2.5.
Affected
2 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| github.com | tencent_weknora | >= 0 < 0.2.5 | 0.2.5 |
| tencent | weknora | < 0.2.5 | 0.2.5 |
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
OSV
WeKnora vulnerable to SQL Injection in github.com/Tencent/WeKnora
osv·2026-01-12
CVE-2026-22687 WeKnora vulnerable to SQL Injection in github.com/Tencent/WeKnora
WeKnora vulnerable to SQL Injection in github.com/Tencent/WeKnora
WeKnora vulnerable to SQL Injection in github.com/Tencent/WeKnora
GHSA
WeKnora vulnerable to SQL Injection
ghsa·2026-01-09
CVE-2026-22687 [MEDIUM] CWE-89 WeKnora vulnerable to SQL Injection
WeKnora vulnerable to SQL Injection
### Summary
After WeKnora enables its Agent service, it allows users to call database query tools. Due to lax code backend verification, attackers can use prompts to bypass query restrictions and obtain sensitive information from the target server and database.
### Details
### Source
- **File**: `/internal/agent/tools/database_query.go`
- **Function**: `validateAndSecureSQL()` (lines 249-373)
- **API Endpoint**: `POST /api/v1/agent-chat/{session_id}`
### Sink
- **File**: `/internal/agent/tools/database_query.go`
- **Function**: `Execute()` (line 158: `t.db.WithContext(ctx).Raw(securedSQL).Rows()`)
- **Description**: Raw SQL execution without parameterized queries
后端校验语句:/internal/agent/tools/database_query.go, 273-281:
```
// 3. Check for allowed ta
OSV
WeKnora vulnerable to SQL Injection
osv·2026-01-09
CVE-2026-22687 [MEDIUM] WeKnora vulnerable to SQL Injection
WeKnora vulnerable to SQL Injection
### Summary
After WeKnora enables its Agent service, it allows users to call database query tools. Due to lax code backend verification, attackers can use prompts to bypass query restrictions and obtain sensitive information from the target server and database.
### Details
### Source
- **File**: `/internal/agent/tools/database_query.go`
- **Function**: `validateAndSecureSQL()` (lines 249-373)
- **API Endpoint**: `POST /api/v1/agent-chat/{session_id}`
### Sink
- **File**: `/internal/agent/tools/database_query.go`
- **Function**: `Execute()` (line 158: `t.db.WithContext(ctx).Raw(securedSQL).Rows()`)
- **Description**: Raw SQL execution without parameterized queries
后端校验语句:/internal/agent/tools/database_query.go, 273-281:
```
// 3. Check for allowed ta
No detection rules found.
No public exploits indexed.
2026-01-10
Published