# CVE-2026-52771: YesWiki: Second-Order SQL Injection in Page Delete API via Unescaped Page Tag (`ApiController::deletePage`)

- Severity: High 8.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.30%, higher than 24% of CVEs (2026-12-01)
- Published: 2026-07-09T21:00:14.000Z
- Modified: 2026-09-08T21:05:26.920Z
- Also known as: GHSA-8f2v-2qhj-gfwg
- Weaknesses: CWE-89
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

YesWiki is a wiki system written in PHP. From version 4.2.0 to before version 4.6.6, ApiController::deletePage() interpolates a page tag retrieved from the database into a DELETE FROM …_links WHERE to_tag = '$tag' query without escaping. The page tag is attacker-controlled — the POST /api/pages/{tag} API accepts arbitrary URL-encoded values, including single quotes, and stores them. A low-privilege authenticated user can therefore create a page whose tag is a SQL fragment, make the page non-orphaned via the standard {{include page="…"}} link mechanism, and then invoke the delete endpoint to execute arbitrary SQL inside the wiki database - including time-based blind data exfiltration from any table. This issue has been patched in version 4.6.6.

(As written by CVE List.)

## Affected

- YesWiki yeswiki: >= 4.2.0, < 4.6.6
- yeswiki/yeswiki (Packagist): from 4.2.0 before 4.6.6

## Every score

- GitHub_M: CVSS:3.1 8.3 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L`
- GitHub: CVSS:3.1 8.3 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L`

## References

- <https://github.com/YesWiki/yeswiki/security/advisories/GHSA-8f2v-2qhj-gfwg> (web)
- <https://github.com/YesWiki/yeswiki/commit/23d3cc124613b9428ab963b31807c08879a9c631> (web)
- <https://github.com/YesWiki/yeswiki/releases/tag/v4.6.6>
- <https://github.com/YesWiki/yeswiki> (package)

## Sources

- CVE List: [CVE-2026-52771](https://www.cve.org/CVERecord?id=CVE-2026-52771), CVE Terms of Use, modified 2026-09-08
- GitHub Advisory Database: [GHSA-8f2v-2qhj-gfwg](https://github.com/advisories/GHSA-8f2v-2qhj-gfwg), CC-BY-4.0, modified 2026-07-09
- NVD: [CVE-2026-52771](https://nvd.nist.gov/vuln/detail/CVE-2026-52771), Public domain, modified 2026-09-08

---

Page: https://cve.day/CVE-2026-52771 · Whole record: https://cve.day/CVE-2026-52771.json · Rebuilt by cve.day 2026-11-25T22:59:36.419Z
