{"id":"GHSA-vmhh-xh3g-j992","summary":"Cross-site Scripting in the Flamingo theme manager","details":"### Impact\nWe found a possible XSS vector in the `FlamingoThemesCode.WebHomeSheet` wiki page related to the \"newThemeName\" form field.\n\n### Patches\n\nThe issue is patched in versions 12.10.11, 14.0-rc-1, 13.4.7, 13.10.3.\n\n### Workarounds\nThe easiest workaround is to edit the wiki page `FlamingoThemesCode.WebHomeSheet` (with wiki editor) and change the line\n\n```\n\u003cinput type=\"hidden\" name=\"newThemeName\" id=\"newThemeName\" value=\"$request.newThemeName\" /\u003e\n```\n\ninto\n\n```\n\u003cinput type=\"hidden\" name=\"newThemeName\" id=\"newThemeName\" value=\"$escapetool.xml($request.newThemeName)\" /\u003e\n```\n\n### References\n  * https://jira.xwiki.org/browse/XWIKI-19294\n  * https://github.com/xwiki/xwiki-platform/commit/bd935320bee3c27cf7548351b1d0f935f116d437\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [Jira XWiki](https://jira.xwiki.org)\n* Email us at [security mailing list](mailto:security@xwiki.org)","aliases":["CVE-2022-29251"],"modified":"2023-11-08T04:09:12.290389Z","published":"2022-05-25T22:40:57Z","database_specific":{"github_reviewed_at":"2022-05-25T22:40:57Z","nvd_published_at":"2022-05-25T21:15:00Z","cwe_ids":["CWE-116","CWE-79","CWE-80"],"severity":"HIGH","github_reviewed":true},"references":[{"type":"WEB","url":"https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-vmhh-xh3g-j992"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-29251"},{"type":"WEB","url":"https://github.com/xwiki/xwiki-platform/commit/bd935320bee3c27cf7548351b1d0f935f116d437"},{"type":"PACKAGE","url":"https://github.com/xwiki/xwiki-platform"},{"type":"WEB","url":"https://jira.xwiki.org/browse/XWIKI-19294"}],"affected":[{"package":{"name":"org.xwiki.platform:xwiki-platform-flamingo-theme-ui","ecosystem":"Maven","purl":"pkg:maven/org.xwiki.platform/xwiki-platform-flamingo-theme-ui"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"12.10.11"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-vmhh-xh3g-j992/GHSA-vmhh-xh3g-j992.json"}},{"package":{"name":"org.xwiki.platform:xwiki-platform-flamingo-theme-ui","ecosystem":"Maven","purl":"pkg:maven/org.xwiki.platform/xwiki-platform-flamingo-theme-ui"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"13.0.0"},{"fixed":"13.4.7"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-vmhh-xh3g-j992/GHSA-vmhh-xh3g-j992.json"}},{"package":{"name":"org.xwiki.platform:xwiki-platform-flamingo-theme-ui","ecosystem":"Maven","purl":"pkg:maven/org.xwiki.platform/xwiki-platform-flamingo-theme-ui"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"13.5.0"},{"fixed":"13.10.3"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-vmhh-xh3g-j992/GHSA-vmhh-xh3g-j992.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N"}]}