{"id":"CVE-2022-41938","aliases":["GHSA-7x4w-j98p-854x"],"url":"https://o3.security/vulnerability/CVE-2022-41938","summary":"Cross site scripting vulnerability with discussion titles in flarum","details":"Flarum's page title system allowed for page titles to be converted into HTML DOM nodes when pages were rendered. The change was made after `v1.5` and was not noticed.\n\nThis allowed an attacker to inject malicious HTML markup using a discussion title input, either by creating a new discussion or renaming one. The XSS attack occurs after a visitor opens the relevant discussion page.\n\n### Impact\nAll communities running Flarum from `v1.5.0` to `v1.6.1` are impacted.\n\n### Patches\nThe vulnerability has been fixed and published as flarum/core `v1.6.2`. All communities running Flarum from `v1.5.0` to `v1.6.1` have to upgrade as soon as possible to v1.6.2 using:\n\n```\ncomposer update --prefer-dist --no-dev -a -W\n```\n\nYou can then confirm you run the latest version using:\n\n```\ncomposer show flarum/core\n```\n\n### Workarounds\n**None**\n\n### For more information\nFor any questions or comments on this vulnerability please visit https://discuss.flarum.org/d/27558.\n\nFor support questions create a discussion at https://discuss.flarum.org/t/support.\n\nA reminder that if you ever become aware of a security issue in Flarum, please report it to us privately by emailing [security@flarum.org](mailto:security@flarum.org), and we will address it promptly.\n","published":"2022-11-19T00:00:00Z","modified":"2026-08-12T03:51:16.598566686Z","cvss":{"score":9,"severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H"},"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Packagist","name":"flarum/core","fixedVersion":"1.6.2"}],"fix":{"url":"https://github.com/flarum/framework/commit/690de9ce0ffe7ac4d45b73e303f44340c3433138","label":"flarum/framework@690de9c"},"references":[{"type":"WEB","url":"https://discuss.flarum.org/d/27558"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/41xxx/CVE-2022-41938.json"},{"type":"ADVISORY","url":"https://github.com/flarum/framework/security/advisories/GHSA-7x4w-j98p-854x"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-41938"},{"type":"FIX","url":"https://github.com/flarum/framework/commit/690de9ce0ffe7ac4d45b73e303f44340c3433138"},{"type":"PACKAGE","url":"https://github.com/flarum/framework"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:16.598566686Z"}}