# CVE-2026-73847: Emlog: Missing CSRF protection in AI Assistant execute\_tool leads to full database compromise and admin account takeover

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 6.8
- **CVSS:** 6.8 (v3.1, CNA) `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Privileges required: None; User interaction: Required; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.22% (percentile 7, 2026-11-26)
- **CWE:** CWE-352, CWE-798, CWE-1275
- **Published:** 2026-08-14T17:33:02.631Z
- **Modified:** 2026-09-16T13:42:42.843Z

## Who should check

- Anyone running emlog \<= 2.6.26

## Description

Emlog is an open source website building system. In 2.6.26 and earlier, missing CSRF protection on the AI Assistant execute\_tool action in admin/ai.php lets a remote unauthenticated attacker submit a forged cross-site request from an attacker-controlled page to a recently logged-in administrator. The authentication cookie set in include/lib/loginauth.php has no explicit SameSite attribute, enabling Chrome's temporary Lax+POST grace window. The query\_database case passes attacker-controlled sql and confirm\_code values to Ai::queryDatabase in include/service/ai.php; read queries need no confirmation, write queries accept the public confirm string, only the blog table is write-protected, and aliasing password as pwd\_hash bypasses output redaction. A successful request can read every database table and write every table except blog, including changing the user table to take over an administrator account. No fixed version is available as of this review.

## Affected and fixed versions

- emlog: \<= 2.6.26 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-73847. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-73847.md
Affected: emlog <= 2.6.26
Fixed in: no fixed version listed yet

Steps:
1. Search this machine and project for emlog: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-73847 being exploited?

There is no confirmed exploitation: CVE-2026-73847 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.22% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-73847?

Medium: CVSS 6.8 (v3.1, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2026-73847?

emlog \<= 2.6.26.

### Is there a fix for CVE-2026-73847?

No fixed version is listed in the sources yet. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-73847?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/emlog/emlog/security/advisories/GHSA-v6wr-4x55-7qp5>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-73847>

HTML: <https://flawdb.com/CVE-2026-73847> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-73847>
