Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. flarum/core
  4. ›
  5. CVE-2025-27794

CVE-2025-27794: Flarum Vulnerable to Session Hijacking via Authoritative Subdomain Cookie Overwrite

March 12, 2025

A session hijacking vulnerability exists when an attacker-controlled authoritative subdomain under a parent domain (e.g., subdomain.host.com) sets cookies scoped to the parent domain (.host.com). This allows session token replacement for applications hosted on sibling subdomains (e.g., community.host.com) if session tokens aren’t rotated post-authentication.

Key Constraints:

  • Attacker must control any subdomain under the parent domain (e.g., evil.host.com or x.y.host.com).
  • Parent domain must not be on the Public Suffix List.

Due to non-existent session token rotation after authenticating we can theoretically reproduce the vulnerability by using browser dev tools, but due to the browser’s security measures this does not seem to be exploitable as described.


References

  • github.com/advisories/GHSA-hg9j-64wp-m9px
  • github.com/flarum/framework
  • github.com/flarum/framework/commit/a05aaea3ee1e0a8b870935183193cd6052f1d402
  • github.com/flarum/framework/releases/tag/v1.8.10
  • github.com/flarum/framework/security/advisories/GHSA-hg9j-64wp-m9px
  • nvd.nist.gov/vuln/detail/CVE-2025-27794

Code Behaviors & Features

Detect and mitigate CVE-2025-27794 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.8.10

Fixed versions

  • 1.8.10

Solution

Upgrade to version 1.8.10 or above.

Impact 6.8 MEDIUM

CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')

Source file

packagist/flarum/core/CVE-2025-27794.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:48 +0000.