Cross-Site Scripting Vulnerability in bootstrap-vue

bootstrap-vue Updated 02 Oct 2025

Summary

02/09/2020
HIGH
Yes i
High
Not published

GHSA-c7pp-x73h-4m2v: Cross-Site Scripting in bootstrap-vue. Affects bootstrap-vue versions < 2.0.0-rc.12. Fixed in 2.0.0-rc.12. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

bootstrap-vue is an open-source library that provides Bootstrap 4 components for Vue.js applications. It allows developers to easily integrate Bootstrap components into their Vue.js projects. However, versions prior to 2.0.0-rc.12 are vulnerable to Cross-Site Scripting (XSS) attacks. This vulnerability arises due to insufficient input sanitization in the components, specifically through the options variable. Exploiting this vulnerability could lead to the execution of malicious JavaScript code on the user's browser.

Vulnerability Detail

The Cross-Site Scripting vulnerability in bootstrap-vue allows an attacker to inject malicious scripts into web pages viewed by users. This can result in various harmful consequences, such as stealing sensitive user information, performing unauthorized actions on behalf of the user, or modifying the appearance and behavior of the web page. The vulnerability is classified as CWE-79, which is the Common Weakness Enumeration identifier for Cross-Site Scripting.

How To Fix

Minimum fixed version

2.0.0-rc.12

This is the first release that contains the fix.

npm install bootstrap-vue@2.0.0-rc.12

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no known workaround for this vulnerability. Upgrading to the fixed version is the only recommended solution.

Conclusion

The Cross-Site Scripting vulnerability in bootstrap-vue can have serious security implications for applications using vulnerable versions of the library. It is crucial to upgrade to version 2.0.0-rc.12 or later to mitigate the risk of XSS attacks. Keeping dependencies up to date and regularly monitoring for vulnerabilities using tools like Vulert can help ensure the security of your application.

See every vulnerability recorded for bootstrap-vue →

Share this vulnerability

FAQ

Cross-Site Scripting (XSS) is a type of security vulnerability that allows attackers to inject malicious scripts into web pages viewed by users. These scripts can be used to steal sensitive information, perform unauthorized actions, or modify the appearance and behavior of the web page.

If your application uses a vulnerable version of bootstrap-vue, an attacker can exploit the XSS vulnerability to inject and execute malicious scripts on your users' browsers. This can lead to various security risks, including data theft, unauthorized actions, and manipulation of your application's functionality.

Yes, the recommended fix is to upgrade to version 2.0.0-rc.12 or later of bootstrap-vue. This version includes proper input sanitization to prevent XSS attacks. It is important to keep your dependencies up to date to ensure the security of your application.

No, there are no known workarounds for this vulnerability. Upgrading to the fixed version is the only recommended solution.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability. Vulert analyzes your package-lock.json file to identify and alert you about open-source vulnerabilities in your software.

How To Fix

Minimum fixed version

2.0.0-rc.12

This is the first release that contains the fix.

npm install bootstrap-vue@2.0.0-rc.12

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback