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

flarum/core Updated 02 Oct 2025

Summary

12/03/2025
Yes i
Moderate
6.8

CVE-2025-27794: Flarum Vulnerable to Session Hijacking via Authoritative Subdomain Cookie Overwrite. Affects flarum/core versions < 1.8.10. Fixed in 1.8.10. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

Flarum is a modern forum software that provides a simple and elegant interface for community discussions. It is designed to be lightweight and extensible, allowing users to customize their forum experience. However, Flarum is vulnerable to a session hijacking issue due to improper handling of cookies when hosted on subdomains, which can lead to unauthorized access to user accounts.

Vulnerability Detail

A session hijacking vulnerability exists when an attacker-controlled authoritative subdomain sets cookies scoped to the parent domain. This allows session token replacement for applications hosted on sibling subdomains if session tokens are not rotated post-authentication. The attacker must control any subdomain under the parent domain, and the parent domain must not be on the Public Suffix List. The lack of session token rotation after authentication makes this vulnerability particularly concerning, as it can lead to account takeover and data exposure.

How To Fix

Minimum fixed version

1.8.10

This is the first release that contains the fix.

composer require flarum/core:1.8.10

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, you can restrict cookies to explicit subdomains by setting the cookie domain in your application. For example: 'Set-Cookie: session=token; Domain=community.host.com; Secure; HttpOnly; SameSite=Lax'. This will prevent unauthorized subdomains from accessing the session cookie.

Conclusion

The session hijacking vulnerability in Flarum poses a significant risk to user accounts and sensitive data. It is crucial to update to the latest version of the software and implement recommended security practices to protect against potential exploitation.

See every vulnerability recorded for flarum/core →

Share this vulnerability

FAQ

The vulnerability can lead to account takeover, allowing attackers to gain unauthorized access to user accounts and sensitive data.

You can check if your application is affected by using Vulert, which monitors open-source vulnerabilities in your software. Visit Vulert Scanner to analyze your application without signup.

An attacker must control an authoritative subdomain and the parent domain must not be listed on the Public Suffix List.

The CVSS score of this vulnerability is 6.8, indicating a moderate level of risk.

If an immediate update is not possible, implement the provided workaround to restrict cookie access and mitigate the risk until you can apply the patch.

Related vulnerabilities

Recent vulnerabilities recorded for flarum/core.

How To Fix

Minimum fixed version

1.8.10

This is the first release that contains the fix.

composer require flarum/core:1.8.10

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback