# GHSA-x86x-qhf8-f37w: willdurand/js-translation-bundle potential path traversal attack and remote code injection

> Attackers can exploit path traversal and code injection flaws in this Symfony bundle to execute arbitrary code or read sensitive files.

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

## What is GHSA-x86x-qhf8-f37w?

GHSA-x86x-qhf8-f37w is a path traversal vulnerability in willdurand/js-translation-bundle, published on 7 Jun 2024. It can be exploited over the network.

### Official description

A path traversal and a javascript code injection vulnerabilities were identified in willdurand/js-translation-bundle versions prior to 2.1.1.

## Which versions are affected by GHSA-x86x-qhf8-f37w?

2 open source packages ship an affected version, including willdurand/js-translation-bundle.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `willdurand/js-translation-bundle` | Packagist | All versions | 2.1.1 |
| `willdurand/js-translation-bundle` | Packagist | All versions | 2.1.1 |

## How do I fix GHSA-x86x-qhf8-f37w?

Upgrade willdurand/js-translation-bundle to 2.1.1 or later.

## Is GHSA-x86x-qhf8-f37w being exploited?

There is no known exploitation of GHSA-x86x-qhf8-f37w in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for GHSA-x86x-qhf8-f37w and fix it if it is affected.

What it is: GHSA-x86x-qhf8-f37w is a path traversal vulnerability in willdurand/js-translation-bundle, published on 7 Jun 2024. It can be exploited over the network.
Exploitation: There is no known exploitation of GHSA-x86x-qhf8-f37w in the wild and no public exploit code.

Affected packages and fixed versions:
- willdurand/js-translation-bundle (Packagist): affected all versions; fixed in 2.1.1
- willdurand/js-translation-bundle (Packagist): affected all versions; fixed in 2.1.1

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-x86x-qhf8-f37w/ (Markdown: https://insights.sbomify.com/GHSA-x86x-qhf8-f37w/index.md)
```

## Sources

- OSV: https://osv.dev/vulnerability/GHSA-x86x-qhf8-f37w

---
From sbomify Insights: https://insights.sbomify.com/GHSA-x86x-qhf8-f37w/
Summaries are generated and may contain mistakes; the official description above is the record.
