Malicious Code Detected in generator-react-ui-component: A Critical Vulnerability

generator-react-ui-component Updated 02 Oct 2025

Summary

14/08/2025
CRITICAL
No i
Critical
Not published

MAL-2025-21300: Malicious code in generator-react-ui-component (npm). Affected versions are not published. No fix is published. 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

The package generator-react-ui-component is an npm package designed to facilitate the creation of React UI components. It provides developers with a streamlined way to generate component templates, enhancing productivity and consistency in UI development. However, this package has been found to contain malicious code, posing significant risks to users who integrate it into their projects.

Vulnerability Detail

The vulnerability originates from the inclusion of malicious code within the generator-react-ui-component package. This code can potentially compromise the security of applications that utilize the package, leading to unauthorized access, data breaches, or other harmful effects. The malicious nature of the code raises serious concerns about the integrity of the package and the safety of its users.

How To Fix

This package is malicious. Remove it and rotate any credentials it could have accessed.

npm uninstall generator-react-ui-component

If it arrived as a transitive dependency, remove the package that pulled it in, then reinstall.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a temporary workaround, consider using alternative packages that provide similar functionality without the associated risks. Additionally, you can manually inspect your codebase for any instances where the generator-react-ui-component package is used and replace it with a safer option.

Conclusion

The discovery of malicious code in the generator-react-ui-component package highlights the importance of vigilance when using open-source software. Developers should take immediate action to remove the affected package and consider alternative solutions to safeguard their applications.

See every vulnerability recorded for generator-react-ui-component →

Share this vulnerability

FAQ

The malicious code is designed to compromise the security of applications that use the package, potentially leading to unauthorized access or data breaches.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. By analyzing your package-lock.json file, Vulert can help identify if your application is at risk.

Yes, you can mitigate risks by removing the affected package and replacing it with a safer alternative. Regularly updating your dependencies and monitoring for vulnerabilities is also recommended.

If you have already integrated the generator-react-ui-component package, it is crucial to remove it immediately and replace it with a secure alternative to protect your application.

Detailed information about this vulnerability can be found in the vulnerability report on GitHub, as well as through security advisories related to the npm ecosystem.

How To Fix

This package is malicious. Remove it and rotate any credentials it could have accessed.

npm uninstall generator-react-ui-component

If it arrived as a transitive dependency, remove the package that pulled it in, then reinstall.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. 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