# GHSA-c7pp-x73h-4m2v: Cross-Site Scripting in bootstrap-vue

> Insufficient input sanitization in bootstrap-vue allows attackers to execute malicious JavaScript in users' browsers via the options variable.

- **Severity:** Not scored
- **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:** 2 Sep 2020

## What is GHSA-c7pp-x73h-4m2v?

GHSA-c7pp-x73h-4m2v is a cross-site scripting vulnerability in bootstrap-vue, published on 2 Sep 2020. 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

Versions of `bootstrap-vue` prior to 2.0.0-rc.12 are vulnerable to Cross-Site Scripting. Due to insufficient input sanitization, components may be vulnerable to Cross-Site Scripting through the `options` variable. This may lead to the execution of malicious JavaScript on the user's browser.

## Recommendation

Upgrade to version 2.0.0-rc.12 or later.

## Which versions are affected by GHSA-c7pp-x73h-4m2v?

2 open source packages ship an affected version, including bootstrap-vue.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `bootstrap-vue` | npm | All versions | 2.0.0-rc.12 |
| `bootstrap-vue` | npm | All versions | 2.0.0-rc.12 |

## How do I fix GHSA-c7pp-x73h-4m2v?

Upgrade bootstrap-vue to 2.0.0-rc.12 or later.

## Is GHSA-c7pp-x73h-4m2v being exploited?

There is no known exploitation of GHSA-c7pp-x73h-4m2v in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for GHSA-c7pp-x73h-4m2v and fix it if it is affected.

What it is: GHSA-c7pp-x73h-4m2v is a cross-site scripting vulnerability in bootstrap-vue, published on 2 Sep 2020. 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 GHSA-c7pp-x73h-4m2v in the wild and no public exploit code.

Affected packages and fixed versions:
- bootstrap-vue (npm): affected all versions; fixed in 2.0.0-rc.12
- bootstrap-vue (npm): affected all versions; fixed in 2.0.0-rc.12

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-c7pp-x73h-4m2v/ (Markdown: https://insights.sbomify.com/GHSA-c7pp-x73h-4m2v/index.md)
```

## Sources

- OSV: https://osv.dev/vulnerability/GHSA-c7pp-x73h-4m2v

---
From sbomify Insights: https://insights.sbomify.com/GHSA-c7pp-x73h-4m2v/
Summaries are generated and may contain mistakes; the official description above is the record.
