# GHSA-mvf6-3f2g-xfxf: endroid/qr-code-bundle File Disclosure via logo_path query parameter

> An attacker can disclose arbitrary files by manipulating the logo_path query parameter in the endroid/qr-code-bundle library.

- **Severity:** Not scored
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 15 May 2024

## What is GHSA-mvf6-3f2g-xfxf?

GHSA-mvf6-3f2g-xfxf is a path traversal vulnerability in endroid/qr-code-bundle, published on 15 May 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

Versions of endroid/qr-code-bundle prior to 3.4.2 are affected by a security vulnerability that allows disclosure of files through the logo_path query parameter. The vulnerability arises from the improper handling of non-image data as the logo, which could lead to unintended file disclosure.

## Which versions are affected by GHSA-mvf6-3f2g-xfxf?

2 open source packages ship an affected version, including endroid/qr-code-bundle.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `endroid/qr-code-bundle` | Packagist | All versions | 3.4.2 |
| `endroid/qr-code-bundle` | Packagist | All versions | 3.4.2 |

## How do I fix GHSA-mvf6-3f2g-xfxf?

Upgrade endroid/qr-code-bundle to 3.4.2 or later.

## Is GHSA-mvf6-3f2g-xfxf being exploited?

There is no known exploitation of GHSA-mvf6-3f2g-xfxf in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for GHSA-mvf6-3f2g-xfxf and fix it if it is affected.

What it is: GHSA-mvf6-3f2g-xfxf is a path traversal vulnerability in endroid/qr-code-bundle, published on 15 May 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: There is no known exploitation of GHSA-mvf6-3f2g-xfxf in the wild and no public exploit code.

Affected packages and fixed versions:
- endroid/qr-code-bundle (Packagist): affected all versions; fixed in 3.4.2
- endroid/qr-code-bundle (Packagist): affected all versions; fixed in 3.4.2

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/GHSA-mvf6-3f2g-xfxf/ (Markdown: https://insights.sbomify.com/GHSA-mvf6-3f2g-xfxf/index.md)
```

## Sources

- OSV: https://osv.dev/vulnerability/GHSA-mvf6-3f2g-xfxf

---
From sbomify Insights: https://insights.sbomify.com/GHSA-mvf6-3f2g-xfxf/
Summaries are generated and may contain mistakes; the official description above is the record.
