CVE-2019-17433: z-song laravel-admin XSS via Slug or Name on Roles Screen

encore/laravel-admin Updated 02 Oct 2025

Summary

24/05/2022
No i
Moderate
4.8

CVE-2019-17433: z-song laravel-admin XSS via the Slug or Name on the Roles screen. Affects encore/laravel-admin versions 1.7.3. 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 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

The z-song laravel-admin package, version 1.7.3, is an open-source admin panel builder for Laravel applications. It provides a user-friendly interface for managing various aspects of an application, including roles and permissions. However, this version of laravel-admin is vulnerable to a cross-site scripting (XSS) attack when handling the Slug or Name fields on the Roles screen. This vulnerability can be exploited by an attacker to inject malicious code into the application, potentially leading to unauthorized access, data theft, or other malicious activities.

Vulnerability Detail

The XSS vulnerability in z-song laravel-admin 1.7.3 arises from improper handling of user input on the Roles screen. When the Slug or Name fields are not properly sanitized, an attacker can inject malicious JavaScript code that will be executed by the victim's browser. This can result in the attacker gaining unauthorized access to sensitive information, manipulating user data, or performing actions on behalf of the victim. The severity of this vulnerability is considered moderate, with a CVSS score of 4.8.

How To Fix

No fixed version is published for this vulnerability.

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

Workaround

As a temporary workaround, developers can manually sanitize and validate the Slug and Name fields on the Roles screen to prevent XSS attacks. This can be done by implementing server-side input validation and output encoding. Here is an example of how to sanitize user input in PHP:

$slug = htmlspecialchars($_POST['slug']);
$name = htmlspecialchars($_POST['name']);

By using the htmlspecialchars function, special characters in the input will be converted to their HTML entities, preventing them from being interpreted as code by the browser.

Conclusion

The z-song laravel-admin package, version 1.7.3, is vulnerable to a cross-site scripting (XSS) attack when handling the Slug or Name fields on the Roles screen. This can lead to unauthorized access, data theft, or other malicious activities. It is crucial to upgrade to a patched version of the package and implement proper input validation and output encoding techniques to mitigate the risk of this vulnerability. For further support on vulnerability remediation, you can contact DevNack.com.

See every vulnerability recorded for encore/laravel-admin →

Share this vulnerability

FAQ

This vulnerability allows an attacker to inject malicious code into the application, potentially leading to unauthorized access, data theft, or other malicious activities.

You can use Vulert's playground (https://vulert.com/scanner) to check if your application is affected by this vulnerability. Vulert analyzes your composer.lock file and provides real-time alerts for open-source vulnerabilities.

Yes, the maintainers of z-song laravel-admin have released a fix for this vulnerability in a later version. It is recommended to upgrade to the latest patched version of the package.

To mitigate the risk of this vulnerability, ensure that user input is properly sanitized and validated before using it in any context that could be vulnerable to XSS attacks. Implement server-side input validation and output encoding techniques to prevent malicious code injection.

Related vulnerabilities

Recent vulnerabilities recorded for encore/laravel-admin.

How To Fix

No fixed version is published for this vulnerability.

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