{"id":"CVE-2022-41938","aliases":["CVE-2022-41938","GHSA-7x4w-j98p-854x"],"related":[],"kind":"vulnerability","state":"published","title":"Cross site scripting vulnerability with discussion titles in flarum","summary":"Flarum is an open source discussion platform. 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. This 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. All communities running Flarum from `v1.5.0` to `v1.6.1` are impacted. The 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. There are no known workarounds for this issue.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Flarum is an open source discussion platform. 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. This 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. All communities running Flarum from `v1.5.0` to `v1.6.1` are impacted. The 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. There are no known workarounds for this issue.","source":"cvelist"},{"lang":"en","text":"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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Flarum es una plataforma de debate de código abierto. El sistema de títulos de páginas de Flarum permitía que los títulos de las páginas se convirtieran en nodos HTML DOM cuando se representaban las páginas. El cambio se realizó después de la \"v1.5\" y no se notó. Esto permitió a un atacante inyectar etiquetas HTML maliciosas utilizando una entrada de título de discusión, ya sea creando una nueva discusión o cambiando el nombre de una. El ataque XSS ocurre después de que un visitante abre la página de discusión correspondiente. Todas las comunidades que ejecutan Flarum desde `v1.5.0` hasta `v1.6.1` se ven afectadas. La vulnerabilidad ha sido reparada y publicada como flarum/core `v1.6.2`. Todas las comunidades que ejecutan Flarum desde `v1.5.0` hasta `v1.6.1` deben actualizar lo antes posible a v1.6.2. No se conocen workarounds para este problema.","source":"nvd"}],"published":"2022-11-19T00:00:00.000Z","modified":"2026-06-17T05:04:05.973Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H","score":9,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H","score":9,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H","score":9,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":">= 1.5.0, < 1.6.2","status":"affected"}],"vendor":"flarum","product":"framework","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"1.5.0","status":"affected","fixed":"1.6.2"}],"ecosystem":"Packagist","package":"flarum/core","purl":"pkg:composer/flarum/core","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"1.5.0","fixed":"1.6.2"}],"vendor":"flarum","product":"flarum","cpe":"cpe:2.3:a:flarum:flarum:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/flarum/framework/security/advisories/GHSA-7x4w-j98p-854x","tags":["third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/flarum/framework/commit/690de9ce0ffe7ac4d45b73e303f44340c3433138","tags":["patch","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://discuss.flarum.org/d/27558","tags":["vendor-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-41938","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/flarum/framework","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2025-04-23T15:46:38.149Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-41938","url":"https://www.cve.org/CVERecord?id=CVE-2022-41938","licence":"CVE Terms of Use","modified":"2025-04-23T16:36:43.774Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-7x4w-j98p-854x","url":"https://github.com/advisories/GHSA-7x4w-j98p-854x","licence":"CC-BY-4.0","modified":"2023-11-08T04:10:36.609Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-41938","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-41938","licence":"Public domain","modified":"2026-06-17T05:04:05.973Z"}],"updatedAt":"2026-11-25T22:58:16.692Z","epss":{"score":0.00989,"percentile":0.61378,"date":"2026-11-30T12:00:22.000Z"}}