# GHSA-32wx-4gxx-h48f: Users can edit the tags of any discussion

> Registered users can bypass tag-based access controls to view or interact with restricted content by editing discussion tags via the API.

- **Severity:** Not scored
- **Exploited in the wild:** Not known
- **Login needed:** Any signed-in user
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 29 Jan 2021

## What is GHSA-32wx-4gxx-h48f?

GHSA-32wx-4gxx-h48f is a missing authorization vulnerability in flarum/tags, published on 29 Jan 2021. Any signed-in user can exploit it over the network, with no action from the victim.

### Official description

This advisory concerns a vulnerability which was patched and publicly released on October 5, 2020.

### Impact
This vulnerability allowed any registered user to edit the tags of any discussion for which they have READ access using the REST API.

Users were able to remove any existing tag, and add any tag in which they are allowed to create discussions. The chosen tags still had to match the configured Tags minimums and maximums.

By moving the discussion to new tags, users were able to go around permissions applied to restricted tags. Depending on the setup, this can include publicly exposing content that was only visible to certain groups, or gain the ability to interact with content where such interaction was limited.

The full impact varies depending on the configuration of permissions and restricted tags, and which community extensions are being used. All tag-scoped permissions offered by extensions are impacted by this ability to go around them.

Forums that don't use restricted tags and don't use any extension that relies on tags for access control should not see any security impact. An update is still required to stop users from being able to change any discussion's tags.

Forums that don't use the Tags extension are unaffected.

### Patches
The fix will be available in version v0.1.0-beta.14 with Flarum beta 14. The fix has already been back-ported to Flarum beta 13 as version v0.1.0-beta.13.2 of the Tags extension.

### Workarounds
Version v0.1.0-beta.13.2 of the Tags extension allows existing Flarum beta 13 forums to fix the issue without the need to update to beta 14.

Forums that have not yet updated to Flarum beta 13 are encouraged to update as soon as possible.

### References

- [Release announcement](https://discuss.flarum.org/d/25059-security-update-to-flarum-tags-010-beta132)
- [GitHub issue](https://github.com/flarum/core/issues/2355)

### For more information
If you have any questions or comments about this advisory, please start a new discussion on our [support forum](https://discuss.flarum.org/t/support).

If you discover a security vulnerability within Flarum, please send an e-mail to [security@flarum.org](mailto:security@flarum.org). All security vulnerabilities will be promptly addressed. More details can be found in our [security policy](https://github.com/flarum/core/security/policy).

## Which versions are affected by GHSA-32wx-4gxx-h48f?

2 open source packages ship an affected version, including flarum/tags.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `flarum/tags` | Packagist | All versions | 0.1.0-beta.13.2 |
| `flarum/tags` | Packagist | All versions | 0.1.0-beta.13.2 |

## How do I fix GHSA-32wx-4gxx-h48f?

Upgrade flarum/tags to 0.1.0-beta.13.2 or later.

## Is GHSA-32wx-4gxx-h48f being exploited?

There is no known exploitation of GHSA-32wx-4gxx-h48f in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for GHSA-32wx-4gxx-h48f and fix it if it is affected.

What it is: GHSA-32wx-4gxx-h48f is a missing authorization vulnerability in flarum/tags, published on 29 Jan 2021. Any signed-in user can exploit it over the network, with no action from the victim.
Exploitation: There is no known exploitation of GHSA-32wx-4gxx-h48f in the wild and no public exploit code.

Affected packages and fixed versions:
- flarum/tags (Packagist): affected all versions; fixed in 0.1.0-beta.13.2
- flarum/tags (Packagist): affected all versions; fixed in 0.1.0-beta.13.2

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/GHSA-32wx-4gxx-h48f/ (Markdown: https://insights.sbomify.com/GHSA-32wx-4gxx-h48f/index.md)
```

## Sources

- OSV: https://osv.dev/vulnerability/GHSA-32wx-4gxx-h48f

---
From sbomify Insights: https://insights.sbomify.com/GHSA-32wx-4gxx-h48f/
Summaries are generated and may contain mistakes; the official description above is the record.
