# GHSA-3p7g-wrgg-wq45: GraphQL queries can expose password hashes

> Unauthenticated GraphQL queries expose user password hashes, allowing attackers to potentially crack credentials for content creators and administrators.

- **Severity:** Not scored
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 10 Nov 2022

## What is GHSA-3p7g-wrgg-wq45?

GHSA-3p7g-wrgg-wq45 is a vulnerability in ibexa/graphql, published on 10 Nov 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

### Impact
Unauthenticated GraphQL queries for user accounts can expose password hashes of users that have created or modified content, typically but not necessarily limited to administrators and editors.

### Patches
Affected versions: Ibexa DXP v3.3.\*, v4.2.\*, eZ Platform v2.5.\*
Resolving versions: Ibexa DXP v3.3.28, v4.2.3, eZ Platform v2.5.31

### Workarounds
Remove the "passwordHash" entry from "src/bundle/Resources/config/graphql/User.types.yaml" in the GraphQL package, and other properties like hash type, email, login if you prefer.

### References

This issue was reported to us by Philippe Tranca ("trancap") of the company Lexfo. We are very grateful for their research, and responsible disclosure to us of this critical vulnerability. 

### For more information
If you have any questions or comments about this advisory, please contact Support via your service portal.

## Which versions are affected by GHSA-3p7g-wrgg-wq45?

6 open source packages ship an affected version, including ibexa/graphql.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `ibexa/graphql` | Packagist | From 2.5.0 | 2.5.31 |
| `ibexa/graphql` | Packagist | From 2.5.0 | 2.5.31 |
| `ibexa/graphql` | Packagist | From 3.3.0 | 3.3.28 |
| `ibexa/graphql` | Packagist | From 3.3.0 | 3.3.28 |
| `ibexa/graphql` | Packagist | From 4.2.0 | 4.2.3 |
| `ibexa/graphql` | Packagist | From 4.2.0 | 4.2.3 |

## How do I fix GHSA-3p7g-wrgg-wq45?

Upgrade ibexa/graphql to a fixed version for your release line: 2.5.31, 3.3.28 or 4.2.3.

## Is GHSA-3p7g-wrgg-wq45 being exploited?

There is no known exploitation of GHSA-3p7g-wrgg-wq45 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for GHSA-3p7g-wrgg-wq45 and fix it if it is affected.

What it is: GHSA-3p7g-wrgg-wq45 is a vulnerability in ibexa/graphql, published on 10 Nov 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: There is no known exploitation of GHSA-3p7g-wrgg-wq45 in the wild and no public exploit code.

Affected packages and fixed versions:
- ibexa/graphql (Packagist): affected from 2.5.0; fixed in 2.5.31
- ibexa/graphql (Packagist): affected from 2.5.0; fixed in 2.5.31
- ibexa/graphql (Packagist): affected from 3.3.0; fixed in 3.3.28
- ibexa/graphql (Packagist): affected from 3.3.0; fixed in 3.3.28
- ibexa/graphql (Packagist): affected from 4.2.0; fixed in 4.2.3
- ibexa/graphql (Packagist): affected from 4.2.0; fixed in 4.2.3

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-3p7g-wrgg-wq45/ (Markdown: https://insights.sbomify.com/GHSA-3p7g-wrgg-wq45/index.md)
```

## Sources

- OSV: https://osv.dev/vulnerability/GHSA-3p7g-wrgg-wq45

---
From sbomify Insights: https://insights.sbomify.com/GHSA-3p7g-wrgg-wq45/
Summaries are generated and may contain mistakes; the official description above is the record.
