Cross-Site Scripting in fomantic-ui

fomantic-ui Updated 02 Oct 2025

Summary

02/09/2020
HIGH
Yes i
High
Not published

GHSA-788m-pj96-7w2c: Cross-Site Scripting in fomantic-ui. Affects fomantic-ui versions < 2.7.0. Fixed in 2.7.0. 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 Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

fomantic-ui is an npm package that provides a user interface framework for building responsive and accessible websites. It offers a wide range of components and styling options to enhance the visual appeal and functionality of web applications. However, versions of fomantic-ui are vulnerable to Cross-Site Scripting (XSS) attacks. This vulnerability arises due to the lack of output encoding on the selection dropdowns, allowing user input to be executed instead of being displayed as plain text.

Vulnerability Detail

The Cross-Site Scripting vulnerability in fomantic-ui can be exploited by an attacker to inject malicious scripts into web pages viewed by unsuspecting users. This can lead to various harmful consequences, such as stealing sensitive information, performing unauthorized actions on behalf of the user, or manipulating the appearance and behavior of the website. The lack of output encoding on the selection dropdowns enables the execution of user-supplied code, making it crucial to address this vulnerability promptly.

How To Fix

Minimum fixed version

2.7.0

This is the first release that contains the fix.

npm install fomantic-ui@2.7.0

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

Conclusion

In conclusion, fomantic-ui versions prior to 2.7.0 are susceptible to Cross-Site Scripting attacks due to the lack of output encoding on selection dropdowns. To mitigate this vulnerability, it is essential to upgrade to version 2.7.0 or later. For further assistance and support in addressing this vulnerability, please contact DevNack.com.

See every vulnerability recorded for fomantic-ui →

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 other users. These scripts can be used to steal sensitive information, perform unauthorized actions, or manipulate the appearance and behavior of the website.

The lack of output encoding on selection dropdowns in fomantic-ui allows user-supplied input to be executed as code instead of being displayed as plain text. This enables an attacker to inject malicious scripts into the web page, leading to Cross-Site Scripting vulnerabilities.

A successful Cross-Site Scripting attack can have various consequences, including the theft of sensitive user information (such as login credentials or personal data), unauthorized actions performed on behalf of the user, defacement of the website, or the spreading of malware to other users.

Yes, all versions of fomantic-ui prior to version 2.7.0 are vulnerable to Cross-Site Scripting due to the lack of output encoding on selection dropdowns. It is crucial to upgrade to the latest secure version to mitigate this vulnerability.

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 in real-time and alerts you about any open-source vulnerabilities, including this Cross-Site Scripting issue in fomantic-ui.

How To Fix

Minimum fixed version

2.7.0

This is the first release that contains the fix.

npm install fomantic-ui@2.7.0

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