# CVE-2025-31686: Open Social - Less critical - Access bypass, Information Disclosure - SA-CONTRIB-2025-015

> Attackers can bypass authorization to access restricted information in Drupal Open Social via forceful browsing.

- **Severity:** High 8.1 (`CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 31 Mar 2025
- **Updated:** 29 Apr 2025
- **Also known as:** GHSA-m9w8-wxvp-c9gv

## What is CVE-2025-31686?

CVE-2025-31686 is a high-severity missing authorization vulnerability in Drupal Open Social, published on 31 Mar 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

Missing Authorization vulnerability in Drupal Open Social allows Forceful Browsing.This issue affects Open Social: from 0.0.0 before 12.3.11, from 12.4.0 before 12.4.10.

Weakness: CWE-862 (Missing Authorization)

## Which versions are affected by CVE-2025-31686?

4 open source packages ship an affected version, including goalgorilla/open_social. It affects 1 product.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `goalgorilla/open_social` | Packagist | All versions | 12.3.11 |
| `goalgorilla/open_social` | Packagist | All versions | 12.3.11 |
| `goalgorilla/open_social` | Packagist | From 12.4.0 | 12.4.10 |
| `goalgorilla/open_social` | Packagist | From 12.4.0 | 12.4.10 |

Products: Getopensocial Open Social.

## How do I fix CVE-2025-31686?

Upgrade goalgorilla/open_social to a fixed version for your release line: 12.3.11 or 12.4.10.

## Is CVE-2025-31686 being exploited?

There is no known exploitation of CVE-2025-31686 in the wild and no public exploit code.

## Other vulnerabilities in Drupal Open Social

- [CVE-2025-31685](https://insights.sbomify.com/CVE-2025-31685/): Open Social - Moderately critical - Access bypass - SA-CONTRIB-2025-014 (critical 9.1)
- [CVE-2024-13241](https://insights.sbomify.com/CVE-2024-13241/): Open Social - Moderately critical - Information Disclosure - SA-CONTRIB-2024-005 (critical 9.1)
- [CVE-2025-48921](https://insights.sbomify.com/CVE-2025-48921/): Open Social - Moderately critical - Cross Site Request Forgery - SA-CONTRIB-2025-079 (high 8.8)
- [CVE-2024-13240](https://insights.sbomify.com/CVE-2024-13240/): Open Social - Moderately critical - Access bypass - SA-CONTRIB-2024-004 (high 7.5)
- [CVE-2024-13273](https://insights.sbomify.com/CVE-2024-13273/): Open Social - Moderately critical - Cross Site Scripting, Denial of Service - SA-CONTRIB-2024-037 (medium 5.4)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2025-31686 and fix it if it is affected.

What it is: CVE-2025-31686 is a high-severity missing authorization vulnerability in Drupal Open Social, published on 31 Mar 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2025-31686 in the wild and no public exploit code.

Affected packages and fixed versions:
- goalgorilla/open_social (Packagist): affected all versions; fixed in 12.3.11
- goalgorilla/open_social (Packagist): affected all versions; fixed in 12.3.11
- goalgorilla/open_social (Packagist): affected from 12.4.0; fixed in 12.4.10
- goalgorilla/open_social (Packagist): affected from 12.4.0; fixed in 12.4.10

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/CVE-2025-31686/ (Markdown: https://insights.sbomify.com/CVE-2025-31686/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2025-31686
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2025-31686
- OSV: https://osv.dev/vulnerability/CVE-2025-31686

---
From sbomify Insights: https://insights.sbomify.com/CVE-2025-31686/
Summaries are generated and may contain mistakes; the official description above is the record.
