BUILD A COMMUNITY
MAKE IT YOURS

Modern, open-source community software that stays out of your way.
Start simple, then shape it exactly how you want.

Free, forever. Self-hosted. Open source.
Loading your community preview…

Make it yours

One platform, many possibilities

Bring people together around shared interests, offer support, or create a space for paying members. See what your community could become.

Loading your community preview…

Everything you need

Community platform
Built around your people

From the first hello to your busiest discussion, give your community a space that feels good to use. The essentials are here. The possibilities keep growing.

A place for everyone

Give members the right access with groups and permissions. Keep conversations welcoming with moderation and flagging.

Make it feel like you

Bring your colours, your identity, and your style. Start with the built-in settings, then go further with themes and custom CSS.

Let the conversation flow

A clean editor keeps the focus on what members have to say. Add a rich-text extension when your community needs more.

Keep people in the loop

Help members follow the conversations they care about with notifications and email. Add extensions for digests and real-time updates.

Room to grow

Start with the essentials. Add community-built extensions, connect your tools, or build something of your own as your needs evolve.

A foundation you can trust

Built on Laravel, maintained in the open. Manage your community with permission controls, moderation tools, and ongoing security updates.

Your community, your terms

A community that’s
truly yours

Choose where it lives, make it look and work your way, and keep control of your data. Flarum gives you the foundation. You decide what comes next.

Your community

Your own corner of the internet

Bring your people together under your own name. A home for the questions, stories, and shared interests that connect you.

Your way

More than a discussion

Gather ideas. Offer support. Let members vote on what comes next. Add the extensions that make your community yours.

Explore extensions
Your control

Choose your host, keep control

Host it where you want. Own your data and backups. Free and open source, with the freedom to build on it.

Explore the source code

Made to be extended

Make Flarum do more
for your community

News & updates

Latest from the blog

flarum/mentions 2.0.3 and 1.8.7 - Security Release

We have released flarum/mentions 2.0.3 (Flarum 2) and flarum/mentions 1.8.7 (Flarum 1). They fix a single high-severity cross-site scripting (XSS) vulnerability in the Mentions extension. We strongly recommend that every forum using Mentions updates now.

Should you update?

Yes. If your forum has the Mentions extension enabled, on any version of Flarum 1 or Flarum 2, you are affected. Mentions is bundled with Flarum and enabled by default, so most forums are.
  • Flarum 2: update flarum/mentions to 2.0.3.
  • Flarum 1: update flarum/mentions to 1.8.7.
Each release contains the fix and nothing else, so it's a safe, low-risk update.

What was fixed

Any user who can post could write a post containing a specially crafted link. When another user selected text in that post, for example to quote it, the attacker's JavaScript ran in that user's browser. The victim didn't have to click anything: selecting the text was enough. Guests and logged-in users were both affected.
The script ran with the victim's session, so it could do anything the victim can. If the victim was an administrator, that could mean a full takeover of the forum.
Full details are in the GitHub Security Advisory:

How to update

composer update flarum/mentions
php flarum cache:clear
As always, back up your database and files before updating. Anyone with the forum already open in a tab should reload it to pick up the fix.

Can't update yet?

You have two options until you can update.
Option 1: disable the Mentions extension in the admin dashboard. This fully removes the vulnerable code, but it also turns off @mentions, replies to posts and quoting until you turn it back on.
WARNING: The following mitigation is a stop-gap until you can apply the patch by updating. It is not intended as a long-term security fix.
Option 2: add a mitigation script. It keeps Mentions working. Go to Administration → Appearance → Custom Header and add this:
<script>
(function () {
  var done = false;
  function apply() {
    var $ = window.jQuery;
    if (done || !$ || !$.htmlPrefilter) return;
    done = true;
    var prefilter = $.htmlPrefilter;
    $.htmlPrefilter = function (html) {
      if (typeof html === 'string' && /^!?\[[\s\S]*\)$/.test(html)) {
        return html.replace(/&/g, '&amp;').replace(/</g, '&lt;');
      }
      return prefilter.apply(this, arguments);
    };
  }
  document.addEventListener('DOMContentLoaded', apply);
  window.addEventListener('mouseup', apply, true);
  window.addEventListener('selectionchange', apply, true);
})();
</script>
Both options take effect when a page is loaded, so tabs that were already open need a reload. These are stopgaps: please still update as soon as you can, then remove the script.

Thanks

Our thanks to @glowingblue for testing the fix and writing the mitigation script.
If you have any difficulty updating, please reach out in theSupport tag where we will help you.

Flarum 2.0.2 released

Flarum 2.0.2 Release
Hi everyone!
Flarum 2.0.2 is out! It's a patch release, full of fixes for things you've told us about since 2.0.1 was released a few days ago Flarum 2.0.1 is out, plus a few we spotted ourselves along the way, and some welcome speed-ups. Thank you for all the reports, they really do make Flarum better for everyone.

What's fixed

Around the forum
  • A short wait after too many wrong passwords. After several failed attempts to log in, the login form now asks you to wait a few minutes before trying again. If your forum sits behind a proxy or load balancer, make sure Flarum sees each visitor's real IP address, or everyone will share one limit. Thanks to Ari Suryo for reporting this!
  • Likes are back on profile pages. The Posts tab on a member's profile wasn't showing likes, or other details extensions add to posts. It does now. Thanks @clarkwinkelmann for spotting it!
  • Hidden groups count again. If your forum hides a group, such as the Admin group, its members are now treated as members of it everywhere. Before this, a moderator could be offered Suspend on an admin, members allowed to edit others' account details could see an admin's email address, and permissions given through a hidden group didn't always count.
  • Bold text is back. Some messages that should show part of their text in bold were showing {undefined} in its place. They now read properly again.
  • Start typing straight away. When you open the composer to reply to or edit a post, your cursor now lands in the editor, ready to go. Thanks to HawkForge for the fix.
  • Searches that leave something out keep working. If you searched with a filter like "not by this author" and then opened the full search, the "not" could get lost along the way. Also fixed by HawkForge.
  • The header stays put. On computers that show scrollbars, the header no longer jumps sideways when a popup opens.
  • The back button is the same size on every page. Thanks @huoxin233 for reporting it!
  • Search stays steady while you type. The search popup no longer shifts sideways or jumps in height as its results change. Thanks again, @huoxin233!
  • Odd links behave. A few malformed links, like /d/0, now show a proper "not found" page instead of an error. Thanks @Karl!
  • Icons arrive faster on your first visit. On forums using Flarum's built-in icons (the default), each icon font now downloads once instead of twice. Thanks again, @Karl.
On your phone
  • The × that clears a search now stays inside the search box in the menu.
  • The Quote button that appears when you select text stays fully on screen, and out of the way of your phone's own selection handles. Thanks @CyberGene!
Deck and live updates
  • Deck catches up. If new discussions or replies arrive while you're reading somewhere else on the forum, Deck now shows them when you come back. Thanks @GreXXL for reporting this, and HawkForge for the fix.
  • Live updates don't go missing. When the realtime server receives two updates at the same moment, both now get through. Thanks @edgeinfinity1 for tracking that one down!
Installing Flarum
  • If your server only has PostgreSQL or SQLite support, the installer no longer insists on the MySQL driver too. Thanks @TheRogue for letting us know!
Behind the scenes
  • Profile pages and post lists are quicker. A member's posts, and the lists of posts someone liked or was mentioned in, now take around a quarter less work on the server and fewer database queries. That makes up for the extra details these pages show again now that likes are back. Opening a discussion got a little quicker too.
  • Pages with lots of tags now need fewer database queries, and a couple of other small inefficiencies have been tidied up.

For extension developers

  • Please update flarum/phpstan to 2.0.1. Until now, composer analyse:phpstan installed a Flarum test site into whatever database your DB_* variables point at, dropping every table in it, the first time it ran in a fresh checkout (and on every run in CI). It now installs into a SQLite database of its own, so it needs the pdo_sqlite extension. flarum/framework5247
  • flarum/testing 2.0.1 creates storage/locale for the test site, so test suites no longer end with warnings about writing translation catalogues, and suites that fail on warnings pass again. Thanks @ernestdefoe for pointing it out. flarum/framework5235
  • Extensions can now listen to the MessageSending event to change, or cancel, outgoing emails. Core's own listener was accidentally stopping every listener after it from running. flarum/framework5217
  • A new withDefaultIncludes query parameter lets a request name extra includes and still keep the endpoint's defaults. Post lists use it, which is what brought the likes back. flarum/framework5207
  • Relationship fields can call withoutRelatedScope() to have endpoints eager load them in full, rather than only what the viewer may see. It's for relations that policies need to read completely, like a user's groups, and the field's getter then leaves out what the viewer may not see. https://docs.flarum.org/extend/api#loading-a-relationship-in-full flarum/framework5241
  • The API serializer now decides each field's visibility once per resource in a response, and doesn't re-run a pending getter on the same model. Make sure a field's visible() depends on the record and the actor, not on which relations happen to be loaded. flarum/framework5238
  • User::isAdmin() now remembers its answer for the groups it was worked out from. If you change a user's groups, reload or replace the relation rather than editing the loaded collection in place. flarum/framework5240
  • Audit log sentences for your extension's actions can now use any plain value in the entry's payload as a placeholder, as the docs already said. Core's own placeholders win if the names clash. flarum/framework5246
  • flarum-webpack-config 3.0.7 registers a default-exported arrow function, call or property under its own name, instead of the first name inside it. flarum/framework5234
  • Liking a post through the API that's already liked (isLiked: true) now leaves it liked, instead of flipping it off. Thanks again, @clarkwinkelmann. flarum/framework5206
  • The typings now accept a route resolver that narrows its component. Thanks @datlechin! flarum/framework5009

Package versions

Not every package changed in this release, so here's what you'll have after updating:
PackageVersionChanged in this release
flarum/core2.0.2Yes
flarum/audit2.0.2Yes
flarum/deck2.0.2Yes
flarum/likes2.0.2Yes
flarum/mentions2.0.2Yes
flarum/messages2.0.2Yes
flarum/realtime2.0.2Yes
flarum/sticky2.0.2Yes
flarum/suspend2.0.2Yes
flarum/tags2.0.2Yes
flarum/phpstan2.0.1Yes, for extension developers
flarum/testing2.0.1Yes, for extension developers
flarum/akismet2.0.1No
flarum/approval2.0.1No
flarum/bbcode2.0.1No
flarum/embed2.0.1No
flarum/emoji2.0.1No
flarum/extension-manager2.0.1No
flarum/flags2.0.1No
flarum/gdpr2.0.1No
flarum/lock2.0.1No
flarum/markdown2.0.1No
flarum/nicknames2.0.1No
flarum/statistics2.0.1No
flarum/subscriptions2.0.1No
flarum/lang-english2.0.0No
flarum/pusher2.0.0No

How to update

From your forum's root folder, run:
composer update --prefer-dist --no-plugins --no-dev -a --with-all-dependencies
php flarum migrate
php flarum cache:clear
There's more detail in the docs if you need it: https://docs.flarum.org/update
The full list of changes is in the changelog: flarum/frameworkblob/2.x/CHANGELOG.md

Thank you!

A big thank you to everyone who reported problems, sent in fixes and helped test them. Patch releases like this one only happen because you take the time to tell us when something isn't quite right.
With 2.0.2 out of the door, our attention now turns to 2.1. In the meantime, let us know how your update goes, and if anything looks off afterwards, post below and we'll take a look!

Flarum 1.8.21 - Security Release

We have released Flarum 1.8.21, a security release that addresses a single, high-severity privilege escalation vulnerability. We strongly recommend that all forums on Flarum 1.x update immediately.

Should you update?

Yes. If your forum runs any version of Flarum 1.x, you are affected and should act now.
Our recommendation, in order of preference:
  1. Upgrade to Flarum 2. Flarum 2 is not affected by this vulnerability, and it is the more secure and actively developed line. If you are in a position to make the move, this is the best path forward. See the 2.0 upgrade guide to get started.
  2. If you must remain on Flarum 1 for now, update to 1.8.21 as soon as possible. This release contains the fix and nothing else, so it is a safe, low-risk update.
Please do not leave this. The vulnerability is straightforward to exploit on an affected forum.

What was fixed

A user holding the "Edit groups" (user.editGroups) permission — but who is not an administrator — could escalate themselves to a full administrator by sending a specially crafted group identifier when editing a user's groups. Because this permission is commonly granted to moderators or power users, many forums are exposed.
The result is a complete compromise of the forum: the attacker gains full administrative access.
Flarum 2 is not affected.
Full details are published in the GitHub Security Advisory:

How to update

composer update
php flarum migrate
php flarum cache:clear
As always, back up your database and files before updating.

Thanks

Our thanks to the reporter for the responsible disclosure of this issue.

If you have any difficulty updating, please reach out in theSupport tag where we will help you.

Our partners

Built with the best tools

We’re grateful to these companies who generously donate their products to the Flarum project.

Funded by

Flarum 2.0 was made possible with financial support from the NLnet Foundation through the NGI Zero grant programme.