{"id":"CVE-2022-41927","aliases":["CVE-2022-41927","GHSA-mq7h-5574-hw9f"],"related":[],"kind":"vulnerability","state":"published","title":"XWiki Platform vulnerable to Cross-Site Request Forgery (CSRF) allowing to delete or rename tags","summary":"XWiki Platform is vulnerable to Cross-Site Request Forgery (CSRF) that may allow attackers to delete or rename tags without needing any confirmation. The problem has been patched in XWiki 13.10.7, 14.4.1 and 14.5RC1. Workarounds: It's possible to patch existing instances directly by editing the page Main.Tags and add this kind of check, in the code for renaming and for deleting: ``` #if (!$services.csrf.isTokenValid($request.get('form_token'))) #set ($discard = $response.sendError(401, \"Wrong CSRF token\")) #end ```","summarySource":"cvelist","descriptions":[{"lang":"en","text":"XWiki Platform is vulnerable to Cross-Site Request Forgery (CSRF) that may allow attackers to delete or rename tags without needing any confirmation. The problem has been patched in XWiki 13.10.7, 14.4.1 and 14.5RC1. Workarounds: It's possible to patch existing instances directly by editing the page Main.Tags and add this kind of check, in the code for renaming and for deleting: ``` #if (!$services.csrf.isTokenValid($request.get('form_token'))) #set ($discard = $response.sendError(401, \"Wrong CSRF token\")) #end ```","source":"cvelist"},{"lang":"en","text":"### Impact\n\nIt's possible with a simple request to perform deletion or renaming of tags without needing any confirmation, by using a CSRF attack. \n\n### Patches\n\nThe problem has been patched in XWiki 13.10.7, 14.4.1 and 14.5RC1. \n\n### Workarounds\n\nIt's possible to patch existing instances directly by editing the page Main.Tags and add this kind of check, in the code for renaming and for deleting:\n```\n#if (!$services.csrf.isTokenValid($request.get('form_token')))\n    #set ($discard = $response.sendError(401, \"Wrong CSRF token\"))\n#end\n```\n\nSee the commit with the fix for more information about patching the page: https://github.com/xwiki/xwiki-platform/commit/7fd4cda0590180c4d34f557597e9e10e263def9e\n\n### References\n\n  * https://jira.xwiki.org/browse/XWIKI-19748\n  * https://github.com/xwiki/xwiki-platform/commit/7fd4cda0590180c4d34f557597e9e10e263def9e\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [JIRA](https://jira.xwiki.org)\n* Email us at [security ML](mailto:security@xwiki.org)","format":"markdown","source":"ghsa"},{"lang":"es","text":"XWiki Platform es vulnerable a la Cross-Site Request Forgery (CSRF), que puede permitir a los atacantes eliminar o cambiar el nombre de las etiquetas sin necesidad de confirmación. El problema se solucionó en XWiki 13.10.7, 14.4.1 y 14.5RC1. Workarounds: es posible parchear instancias existentes directamente editando la página Main.Tags y agregando este tipo de verificación en el código para cambiar el nombre y eliminar: ``` #if (!$services.csrf.isTokenValid($request.get('form_token'))) #set ($discard = $response.sendError(401, \"Wrong CSRF token\")) #end ```","source":"nvd"}],"published":"2022-11-21T22:34:35.000Z","modified":"2026-06-17T05:04:04.697Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:H/A:N","score":7.4,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:H/A:N","score":7.4,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:H/A:N","score":7.4,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:H/A:N","score":7.4,"rating":"HIGH"}],"cwes":["CWE-352"],"affected":[{"ranges":[{"version":">= 3.2-milestone-2, < 13.10.7","status":"affected"},{"version":">= 14.0.0, < 14.4.1","status":"affected"}],"vendor":"xwiki","product":"xwiki-platform","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"3.2-milestone-2","status":"affected","fixed":"13.10.7"}],"ecosystem":"Maven","package":"org.xwiki.platform:xwiki-platform-tag-ui","purl":"pkg:maven/org.xwiki.platform/xwiki-platform-tag-ui","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"14.0.0","status":"affected","fixed":"14.4.1"}],"ecosystem":"Maven","package":"org.xwiki.platform:xwiki-platform-tag-ui","purl":"pkg:maven/org.xwiki.platform/xwiki-platform-tag-ui","source":"ghsa"},{"ranges":[{"status":"affected","introduced":">3.2","fixed":"13.10.7"},{"status":"affected","version":"3.2"},{"status":"affected","version":"3.2"},{"status":"affected","version":"14.4"}],"vendor":"xwiki","product":"xwiki","cpe":"cpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-mq7h-5574-hw9f","tags":["mitigation","patch","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/xwiki/xwiki-platform/commit/7fd4cda0590180c4d34f557597e9e10e263def9e","tags":["patch","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-41927","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/xwiki/xwiki-platform","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-04-23T13:54:05.395Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-41927","url":"https://www.cve.org/CVERecord?id=CVE-2022-41927","licence":"CVE Terms of Use","modified":"2025-04-23T16:35:31.577Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-mq7h-5574-hw9f","url":"https://github.com/advisories/GHSA-mq7h-5574-hw9f","licence":"CC-BY-4.0","modified":"2023-11-08T04:10:35.997Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-41927","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-41927","licence":"Public domain","modified":"2026-06-17T05:04:04.697Z"}],"updatedAt":"2026-11-25T22:58:16.879Z","epss":{"score":0.00389,"percentile":0.24722,"date":"2026-11-30T12:00:22.000Z"}}