File Disclosure Vulnerability in endroid/qr-code-bundle

endroid/qr-code-bundle Updated 02 Oct 2025

Summary

15/05/2024
MODERATE
Yes i
Moderate
Not published

GHSA-mvf6-3f2g-xfxf: endroid/qr-code-bundle File Disclosure via logo_path query parameter. Affects endroid/qr-code-bundle versions < 3.4.2. Fixed in 3.4.2. 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 Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

The endroid/qr-code-bundle is a package available on Packagist that provides functionality for generating QR codes in Symfony applications. It allows developers to easily create QR codes with various customization options. However, versions prior to 3.4.2 are vulnerable to a security issue that can lead to file disclosure.

Vulnerability Detail

The vulnerability in endroid/qr-code-bundle arises from the improper handling of non-image data as the logo. This can be exploited by an attacker who can manipulate the logo_path query parameter to disclose arbitrary files on the server. By providing a non-image file path, an attacker can trick the application into returning the contents of the file, potentially exposing sensitive information. This vulnerability has a moderate severity rating and is identified with the CWE-200 code.

How To Fix

Minimum fixed version

3.4.2

This is the first release that contains the fix.

composer require endroid/qr-code-bundle:3.4.2

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

Workaround

There is no known workaround for this vulnerability. It is essential to apply the fix by upgrading to the latest version of endroid/qr-code-bundle.

Conclusion

The file disclosure vulnerability in endroid/qr-code-bundle can be mitigated by upgrading to version 3.4.2 or later. It is crucial to apply this fix to prevent potential file disclosure and protect sensitive information. For further support on vulnerability remediation, you can reach out to DevNack.com.

See every vulnerability recorded for endroid/qr-code-bundle →

Share this vulnerability

FAQ

You can use the Vulert Playground at Vulert Scanner to check if your application is affected by this vulnerability. Simply provide your composer.lock file, and Vulert will analyze it to identify any vulnerable packages.

Exploiting this vulnerability can lead to the disclosure of sensitive files on the server. This could include configuration files, database credentials, or other sensitive information, depending on the files accessible to the application.

There are no known instances of this vulnerability being exploited in the wild. However, it is crucial to apply the fix promptly to mitigate the risk of potential exploitation.

No additional configuration is required after upgrading to version 3.4.2 or later. The fix addresses the vulnerability, and the package should function as expected.

How To Fix

Minimum fixed version

3.4.2

This is the first release that contains the fix.

composer require endroid/qr-code-bundle:3.4.2

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