{"id":"CVE-2021-29625","aliases":["CVE-2021-29625","GHSA-2v82-5746-vwqc"],"related":[],"kind":"vulnerability","state":"published","title":"XSS in doc_link","summary":"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`).","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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`).","source":"cvelist"},{"lang":"en","text":"### Impact\nUsers of MySQL, MariaDB, PgSQL and SQLite are affected. 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.\n\n### Patches\nPatched by 4043092, included in version [4.8.1](https://github.com/vrana/adminer/releases/tag/v4.8.1).\n\n### Workarounds\nDo both:\n* Use browser supporting strict CSP.\n* Enable the native PHP extensions (e.g. `mysqli`) or disable displaying PHP errors (`display_errors`).\n\n### References\nhttps://sourceforge.net/p/adminer/bugs-and-features/797/\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Comment at 4043092.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Adminer es un software de administración de bases de datos de código abierto.&#xa0;Una vulnerabilidad de tipo cross-site scripting en Adminer versiones 4.6.1 hasta 4.8.0, afecta a los usuarios de MySQL, MariaDB, PgSQL y SQLite.&#xa0;Un ataque de tipo XSS en la mayoría de los casos es impedido por un CSP estricto en todos los navegadores modernos.&#xa0;La única excepción es cuando Adminer está usando una extensión \"pdo_\" para comunicarse con la base de datos (se usa si las extensiones nativas no están habilitadas).&#xa0;En los navegadores sin CSP, las versiones de Adminer 4.6.1 hasta 4.8.0 están afectadas.&#xa0;La vulnerabilidad está parcheada en la versión 4.8.1.&#xa0;Como soluciones alternativas, se puede usar un navegador que admita CSP estricto o habilitar las extensiones nativas de PHP (por ejemplo, \"mysqli\") o deshabilitar la visualización de errores de PHP (\"display_errors\")","source":"nvd"}],"published":"2021-05-19T21:35:11.000Z","modified":"2026-07-08T06:29:28.930Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","score":4.3,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":">= 4.7.8, < 4.8.1","status":"affected"}],"vendor":"vrana","product":"adminer","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"4.7.8","status":"affected","fixed":"4.8.1"}],"ecosystem":"Packagist","package":"vrana/adminer","purl":"pkg:composer/vrana/adminer","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"4.6.1","fixed":"4.8.1"}],"vendor":"adminer","product":"adminer","cpe":"cpe:2.3:a:adminer:adminer:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/vrana/adminer/security/advisories/GHSA-2v82-5746-vwqc","tags":["patch","third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/vrana/adminer/commit/4043092ec2c0de2258d60a99d0c5958637d051a7","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://sourceforge.net/p/adminer/bugs-and-features/797/","tags":["exploit","product","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-29625","tags":["advisory"],"sources":["ghsa"]},{"url":"https://packagist.org/packages/vrana/adminer","tags":["web"],"sources":["ghsa"]},{"url":"https://sourceforge.net/p/adminer/bugs-and-features/797","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-29625","url":"https://www.cve.org/CVERecord?id=CVE-2021-29625","licence":"CVE Terms of Use","modified":"2024-08-03T22:11:06.269Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-2v82-5746-vwqc","url":"https://github.com/advisories/GHSA-2v82-5746-vwqc","licence":"CC-BY-4.0","modified":"2026-07-08T06:29:28.930Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-29625","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-29625","licence":"Public domain","modified":"2026-06-17T03:48:03.123Z"}],"updatedAt":"2026-11-25T22:58:01.462Z","epss":{"score":0.10248,"percentile":0.9579,"date":"2026-12-01T12:00:22.000Z"}}