{"id":"GHSA-2v82-5746-vwqc","aliases":["CVE-2021-29625"],"title":"XSS in doc_link","titleSource":"OSV","descriptionSource":"OSV","declaredSeverity":"HIGH","description":"### 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.\n","severity":"high","score":7.5,"published":"2022-03-18T17:49:28.000Z","modified":"2026-07-08T06:29:28.930Z","withdrawn":false,"knownExploited":false,"affected":[{"ecosystem":"Packagist","name":"vrana/adminer","sources":[{"name":"OSV · GHSA-2v82-5746-vwqc","url":"https://osv.dev/vulnerability/GHSA-2v82-5746-vwqc"}],"ranges":[{"events":[{"introduced":"4.7.8"},{"fixed":"4.8.1"}],"type":"ECOSYSTEM"}],"versions":["v4.7.8","v4.7.9","v4.8.0"],"fixed":["4.8.1"]}],"sourceAffected":[],"references":["https://github.com/vrana/adminer/security/advisories/GHSA-2v82-5746-vwqc","https://nvd.nist.gov/vuln/detail/CVE-2021-29625","https://github.com/vrana/adminer/commit/4043092ec2c0de2258d60a99d0c5958637d051a7","https://packagist.org/packages/vrana/adminer","https://sourceforge.net/p/adminer/bugs-and-features/797"],"sources":[{"name":"OSV","id":"GHSA-2v82-5746-vwqc","modified":"2026-07-08T06:29:28.930539620Z","url":"https://osv.dev/vulnerability/GHSA-2v82-5746-vwqc"}],"assessments":[{"source":"OSV","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.5}],"products":[],"remediation":[],"kev":{"status":"not-listed","checkedAt":"2026-10-28T22:15:33.378Z"},"coverage":[{"source":"NVD","status":"not-checked"},{"source":"GHSA","status":"not-checked"},{"source":"EUVD","status":"not-checked"},{"source":"EPSS","status":"not-checked"}],"evidence":[]}