{"id":"GHSA-7x4w-j98p-854x","aliases":["CVE-2022-41938"],"title":"Cross site scripting vulnerability with discussion titles","titleSource":"OSV","descriptionSource":"OSV","declaredSeverity":"CRITICAL","description":"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","severity":"critical","score":9,"published":"2022-11-21T23:53:32.000Z","modified":"2023-11-08T04:10:36.609Z","withdrawn":false,"knownExploited":false,"affected":[{"ecosystem":"Packagist","name":"flarum/core","sources":[{"name":"OSV · GHSA-7x4w-j98p-854x","url":"https://osv.dev/vulnerability/GHSA-7x4w-j98p-854x"}],"ranges":[{"events":[{"introduced":"1.5.0"},{"fixed":"1.6.2"}],"type":"ECOSYSTEM"}],"versions":["v1.5.0","v1.6.0","v1.6.1"],"fixed":["1.6.2"]}],"sourceAffected":[],"references":["https://github.com/flarum/framework/security/advisories/GHSA-7x4w-j98p-854x","https://nvd.nist.gov/vuln/detail/CVE-2022-41938","https://github.com/flarum/framework/commit/690de9ce0ffe7ac4d45b73e303f44340c3433138","https://discuss.flarum.org/d/27558","https://github.com/flarum/framework"],"sources":[{"name":"OSV","id":"GHSA-7x4w-j98p-854x","modified":"2023-11-08T04:10:36.609534Z","url":"https://osv.dev/vulnerability/GHSA-7x4w-j98p-854x"}],"assessments":[{"source":"OSV","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H","score":9}],"products":[],"remediation":[],"kev":{"status":"not-listed","checkedAt":"2026-10-29T03:30:33.923Z"},"coverage":[{"source":"NVD","status":"not-checked"},{"source":"GHSA","status":"not-checked"},{"source":"EUVD","status":"not-checked"},{"source":"EPSS","status":"not-checked"}],"evidence":[]}