# GHSA-whrh-9j4q-g7ph: CSRF Vulnerability in polaris-website

> An attacker can modify user settings via CSRF if the victim visits a malicious site while logged in.

- **Severity:** Not scored
- **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:** Yes
- **Published:** 5 Aug 2020

## What is GHSA-whrh-9j4q-g7ph?

GHSA-whrh-9j4q-g7ph is a vulnerability in polaris-website, published on 5 Aug 2020. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

### Official description

### Impact
CSRF vulnerability:
In some very specific circumstances, an attacker would be able to update your settings.
Basically you would need to navigate to hackersite.com while logged into our panel. Then they could modify your settings. They couldn't check if it worked, nor could they read your settings.

### Patches
As of v1.1.1 this has been patched by implementing the Double submit pattern using a cookie.

### For more information
If you have any questions or comments about this advisory:
* Open an issue in [Polaris-React](https://github.com/polaris-rbx/polaris-react)
* Email us at [hi@nezto.re](mailto:hi@nezto.re)
* Join our discord (preferred): https://discord.gg/QevWabU

## Which versions are affected by GHSA-whrh-9j4q-g7ph?

2 open source packages ship an affected version, including polaris-website.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `polaris-website` | npm | All versions | 1.1.1 |
| `polaris-website` | npm | All versions | 1.1.1 |

## How do I fix GHSA-whrh-9j4q-g7ph?

Upgrade polaris-website to 1.1.1 or later.

## Is GHSA-whrh-9j4q-g7ph being exploited?

There is no known exploitation of GHSA-whrh-9j4q-g7ph in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for GHSA-whrh-9j4q-g7ph and fix it if it is affected.

What it is: GHSA-whrh-9j4q-g7ph is a vulnerability in polaris-website, published on 5 Aug 2020. 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-whrh-9j4q-g7ph in the wild and no public exploit code.

Affected packages and fixed versions:
- polaris-website (npm): affected all versions; fixed in 1.1.1
- polaris-website (npm): affected all versions; fixed in 1.1.1

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-whrh-9j4q-g7ph/ (Markdown: https://insights.sbomify.com/GHSA-whrh-9j4q-g7ph/index.md)
```

## Sources

- OSV: https://osv.dev/vulnerability/GHSA-whrh-9j4q-g7ph

---
From sbomify Insights: https://insights.sbomify.com/GHSA-whrh-9j4q-g7ph/
Summaries are generated and may contain mistakes; the official description above is the record.
