CVE-2022-0472: Unrestricted Upload of File with Dangerous Type in jsdecena/laracom

jsdecena/laracom Updated 02 Oct 2025

Summary

06/02/2022
Yes i
Moderate
5.4

CVE-2022-0472: Unrestricted Upload of File with Dangerous Type in jsdecena/laracom. Affects jsdecena/laracom versions < 2.0.9. Fixed in 2.0.9. 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

jsdecena/laracom is a package available on Packagist that provides functionality for managing an e-commerce platform. It is used to build and customize online stores. The package allows users to upload files, such as product images, to the platform. However, prior to version 2.0.9, jsdecena/laracom is vulnerable to an unrestricted upload of files with dangerous types.

Vulnerability Detail

The vulnerability in jsdecena/laracom allows an attacker to upload files with dangerous types, such as executable files or scripts, without proper validation. This can lead to various security risks, including remote code execution, file inclusion attacks, and unauthorized access to sensitive data. The lack of file type validation allows an attacker to bypass security measures and upload malicious files, which can then be executed or included in the application's code.

How To Fix

Minimum fixed version

2.0.9

This is the first release that contains the fix.

composer require jsdecena/laracom:2.0.9

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

Workaround

If updating the package is not immediately possible, a temporary workaround is to implement additional server-side validation to check the file type before allowing the upload. This can be done by examining the file's extension or using file signature analysis to verify its type. However, this workaround is not foolproof and should only be considered as a temporary measure until the package is updated.

Conclusion

The vulnerability in jsdecena/laracom allows for the unrestricted upload of files with dangerous types, posing a significant security risk. It is crucial to update the package to version 2.0.9 or later to mitigate this vulnerability. If immediate updating is not possible, implementing additional server-side validation can serve as a temporary workaround. For further support and assistance with vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for jsdecena/laracom →

Share this vulnerability

FAQ

This vulnerability allows an attacker to upload malicious files to the application, which can lead to remote code execution, file inclusion attacks, and unauthorized access to sensitive data.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability. Vulert monitors and alerts in real-time for open-source vulnerabilities, using just the composer.lock file.

Yes, the CVSS score for this vulnerability is 5.4.

While updating the package is the recommended solution, you can implement additional server-side validation to check the file type before allowing the upload as a temporary workaround.

For further support on vulnerability remediation, you can contact info@devnack.com.

Related vulnerabilities

Recent vulnerabilities recorded for jsdecena/laracom.

How To Fix

Minimum fixed version

2.0.9

This is the first release that contains the fix.

composer require jsdecena/laracom:2.0.9

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