GHSA-wjg9-v8cf-f5q2 silverstripe/graphql Cross-Site Request Forgery vulnerability
Not scored
Published
Check this codebase for GHSA-wjg9-v8cf-f5q2 and fix it if it is affected.
What it is: GHSA-wjg9-v8cf-f5q2 is a vulnerability in silverstripe/graphql, published on 28 May 2024. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Exploitation: There is no known exploitation of GHSA-wjg9-v8cf-f5q2 in the wild and no public exploit code.
Affected packages and fixed versions:
- silverstripe/graphql (Packagist): affected from 2.0.0; fixed in 2.0.3
- silverstripe/graphql (Packagist): affected from 2.0.0; fixed in 2.0.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-wjg9-v8cf-f5q2/ (Markdown: https://insights.sbomify.com/GHSA-wjg9-v8cf-f5q2/index.md)
Authenticated users can be tricked into executing unauthorized data mutations or deletions via CSRF in the SilverStripe GraphQL controller.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is GHSA-wjg9-v8cf-f5q2?
GHSA-wjg9-v8cf-f5q2 is a vulnerability in silverstripe/graphql, published on 28 May 2024. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Official description
The GraphQL controller lacked any CSRF protection, meaning authenticated users could be forced or tricked into visiting a URL that would send a GET request to the affected web server that could mutate or destroy data without the user knowing.
Which versions are affected by GHSA-wjg9-v8cf-f5q2?
2 open source packages ship an affected version, including silverstripe/graphql.
| Package | Affected | Fixed in |
|---|---|---|
silverstripe/graphql Packagist | From 2.0.0 | 2.0.3 |
silverstripe/graphql Packagist | From 2.0.0 | 2.0.3 |
How do I fix GHSA-wjg9-v8cf-f5q2?
Upgrade silverstripe/graphql to 2.0.3 or later.
Is GHSA-wjg9-v8cf-f5q2 being exploited?
There is no known exploitation of GHSA-wjg9-v8cf-f5q2 in the wild and no public exploit code.