Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2025-55742 Overview
UnoPim is an open-source Product Information Management (PIM) system built on the Laravel framework. CVE-2025-55742 is a stored cross-site scripting (XSS) vulnerability [CWE-79] affecting UnoPim versions prior to 0.2.1. The flaw resides in the /admin/settings/users/create endpoint, where attackers can bypass MIME type validation and SVG sanitization to upload malicious SVG files containing executable JavaScript. Exploitation requires high privileges and user interaction, limiting the scope but still enabling script execution in the context of other admin users. Webkul resolved the issue in UnoPim 0.2.1.
Critical Impact
Authenticated administrators can upload crafted SVG files that execute JavaScript in the browser of any user who views the stored content, enabling session hijacking and administrative action abuse.
Affected Products
- Webkul UnoPim versions prior to 0.2.1
- Component: webkul:unopim
- Affected endpoint: /admin/settings/users/create
Discovery Timeline
- 2025-08-21 - CVE-2025-55742 published to NVD
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2025-55742
Vulnerability Analysis
The vulnerability allows a privileged user to upload an SVG file as a user profile image through the UnoPim administration interface. SVG files are XML documents that can embed <script> tags or event handlers such as onload. When another user views the uploaded image rendered inline, the browser executes the embedded JavaScript in the application's origin.
The pre-patch validation logic in UserForm.php did not restrict uploaded image.* fields to safe raster formats, nor did it enforce a MIME-type to extension consistency check. This gap permitted attackers to supply an SVG payload that passed existing validation and reached storage. Because the file was later served from an authenticated admin context, the stored script executed with the viewing user's session.
Root Cause
The root cause is improper neutralization of input during web page generation. The UserForm request class lacked a MIME validation rule for the image field, and the controller passed user-submitted image data to storage without stripping or re-encoding SVG content. The sanitizer in place could be bypassed through SVG-specific vectors such as <foreignObject>, CDATA-wrapped scripts, or namespaced event attributes.
Attack Vector
An authenticated attacker with permissions to create or modify user accounts navigates to /admin/settings/users/create, submits a user profile with an SVG payload as the profile image, and waits for another administrator to render the stored user record. The script then executes in the victim's browser, capable of exfiltrating session tokens or issuing authenticated requests on their behalf.
// Patch: packages/Webkul/Admin/src/Http/Requests/UserForm.php
// Adds explicit MIME and extension validation for the image field
'ui_locale_id' => 'required',
'role_id' => 'required',
'timezone' => 'required',
'image.*' => 'sometimes|image|mimes:jpeg,png,jpg,gif,svg|max:2048',
// Source: https://github.com/unopim/unopim/commit/b596021b5a5e0656abe16c01ae0e84c95f9fe902
// Patch: packages/Webkul/Admin/src/Http/Requests/UserForm.php
// Introduces FileMimeExtensionMatch rule to detect MIME/extension mismatch
use Illuminate\Foundation\Http\FormRequest;
use Webkul\Core\Repositories\LocaleRepository;
use Webkul\Core\Rules\AlphaNumericSpace;
use Webkul\Core\Rules\FileMimeExtensionMatch;
class UserForm extends FormRequest
{
// Source: https://github.com/unopim/unopim/commit/b5e169e65725e0d80b6c79d57e62a25e1af6a3c3
Detection Methods for CVE-2025-55742
Indicators of Compromise
- SVG files stored under user profile image directories containing <script>, onload=, onerror=, or <foreignObject> tags.
- POST requests to /admin/settings/users/create or /admin/settings/users/edit with multipart form data where the image field has a .svg extension or image/svg+xml MIME type.
- Unexpected JavaScript execution or outbound requests when administrators load the user management interface.
Detection Strategies
- Scan the UnoPim storage directory for SVG files and inspect contents for scripting constructs or external entity references.
- Review web server logs for uploads to the user creation endpoint prior to applying the 0.2.1 patch.
- Alert on administrator sessions issuing API calls from browser contexts that originate immediately after rendering user profile images.
Monitoring Recommendations
- Enable file integrity monitoring on the UnoPim storage/ and public/storage/ paths to detect new SVG artifacts.
- Deploy Content Security Policy (CSP) violation reporting to surface inline script execution on admin pages.
- Correlate administrator account changes with recently viewed user profiles to identify potential XSS-driven abuse.
How to Mitigate CVE-2025-55742
Immediate Actions Required
- Upgrade UnoPim to version 0.2.1 or later, which applies the official patches from Webkul.
- Audit existing user profile images for SVG files and remove any that contain scripts, event handlers, or external references.
- Rotate administrator credentials and session tokens if unauthorized SVG uploads are discovered.
Patch Information
The vulnerability is fixed in UnoPim 0.2.1. Relevant commits include b596021b (adds MIME validation for the image field), b5e169e6 (introduces the FileMimeExtensionMatch validation rule), and 49d5f6ac (adds validation for file extension and MIME in the import and user controllers). Full details are available in the GitHub Security Advisory GHSA-xr97-25v7-hc2q.
Workarounds
- If immediate patching is not possible, restrict the user creation and edit endpoints to a minimal set of trusted administrators via network ACLs or reverse-proxy rules.
- Configure the web server to serve .svg files with a Content-Disposition: attachment header or image/svg+xml sanitized through a server-side rewrite, preventing inline browser rendering.
- Deploy a strict Content Security Policy such as default-src 'self'; script-src 'self' on administrative pages to block execution of injected inline scripts.
# Upgrade UnoPim via Composer to the patched release
composer require unopim/unopim:^0.2.1
php artisan migrate
php artisan cache:clear
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

