# CVE-2024-56329: Account Takeover Vulnerability in Social Account Linking in joelbutcher/socialstream

> Attackers can hijack accounts by linking social profiles without user confirmation, especially if stateless mode is enabled. Developers must upgrade to v6.2.

- **Severity:** High 8.9 (`CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** A user has to click or open something
- **Fix available:** Yes
- **Published:** 20 Dec 2024
- **Updated:** 24 Dec 2024
- **Also known as:** GHSA-3q97-vjpp-c8rp

## What is CVE-2024-56329?

CVE-2024-56329 is a high-severity authentication bypass vulnerability in joelbutcher socialstream, published on 20 Dec 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

### Official description

Socialstream is a third-party package for Laravel Jetstream. It replaces the published authentication and profile scaffolding provided by Laravel Jetstream, with scaffolding that has support for Laravel Socialite. When linking a social account to an already authenticated user, the lack of a confirmation step introduces a security risk. This is exacerbated if ->stateless() is used in the Socialite configuration, bypassing state verification and making the exploit easier. Developers should ensure that users explicitly confirm account linking and avoid configurations that skip critical security checks. Socialstream v6.2 introduces a new custom route that requires a user to "Confirm" or "Deny" a request to link a social account. Users are advised to upgrade. There are no known workarounds for this vulnerability.

Weakness: CWE-287 (Improper Authentication)

## Which versions are affected by CVE-2024-56329?

4 open source packages ship an affected version, including joelbutcher/socialstream.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `joelbutcher/socialstream` | Packagist | All versions | 5.6.0 |
| `joelbutcher/socialstream` | Packagist | All versions | 5.6.0 |
| `joelbutcher/socialstream` | Packagist | From 6.0.0 | 6.2.0 |
| `joelbutcher/socialstream` | Packagist | From 6.0.0 | 6.2.0 |

## How do I fix CVE-2024-56329?

Upgrade joelbutcher/socialstream to a fixed version for your release line: 5.6.0 or 6.2.0.

## Is CVE-2024-56329 being exploited?

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

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2024-56329 and fix it if it is affected.

What it is: CVE-2024-56329 is a high-severity authentication bypass vulnerability in joelbutcher socialstream, published on 20 Dec 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Exploitation: There is no known exploitation of CVE-2024-56329 in the wild and no public exploit code.

Affected packages and fixed versions:
- joelbutcher/socialstream (Packagist): affected all versions; fixed in 5.6.0
- joelbutcher/socialstream (Packagist): affected all versions; fixed in 5.6.0
- joelbutcher/socialstream (Packagist): affected from 6.0.0; fixed in 6.2.0
- joelbutcher/socialstream (Packagist): affected from 6.0.0; fixed in 6.2.0

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

## Sources

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

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