GHSA-x86x-qhf8-f37w: Willdurand/js translation bundle Path Traversal Vulnerability

CRITICAL
CVSS 9.8
CWE-74 CWE-22
Published
Advisory Summary

GHSA-x86x-qhf8-f37w is a CRITICAL (CVSS 9.8) path traversal vulnerability (CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')) affecting Willdurand/js translation bundle libraries in the Packagist ecosystem. The issue involves willdurand/js-translation-bundle potential path traversal attack and remote code injection. Remediation is available by upgrading affected packages to version 2.1.1.

GHSA-x86x-qhf8-f37w at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-x86x-qhf8-f37w
Severity CRITICAL
CVSS v3.1 Base Score 9.8
CWE Classification CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')
Affected Product Willdurand/js translation bundle
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 9.8

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix GHSA-x86x-qhf8-f37w

To remediate this vulnerability, upgrade all affected Willdurand/js translation bundle dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

willdurand/js-translation-bundle fixed: 2.1.1
Upgrade willdurand/js-translation-bundle to 2.1.1
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for willdurand/js-translation-bundle

How to Check if You Are Affected

To determine whether your application is affected by GHSA-x86x-qhf8-f37w, inspect your project dependencies for Willdurand/js translation bundle:

inspect dependencies for willdurand/js-translation-bundle

Analyze the terminal output to locate any version of Willdurand/js translation bundle in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.1.1), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection'), where the product constructs all or part of a command, data structure, or record using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify how it is parsed or interpreted when it is sent to a downstream component. In Willdurand/js translation bundle, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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

GHSA-x86x-qhf8-f37w Affected Willdurand/js translation bundle Versions

1 component(s)
Fixed Versions:
2.1.1
Product / Package Ecosystem Affected Versions Fixed Version
willdurand/js-translation-bundle
Packagist
< 2.1.1
2.1.1

References

Frequently Asked Questions

What is GHSA-x86x-qhf8-f37w?
GHSA-x86x-qhf8-f37w is a security vulnerability in Willdurand/js translation bundle involving willdurand/js-translation-bundle potential path traversal attack and remote code injection under CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection').
Which Willdurand/js translation bundle versions are affected?
Affected versions include releases prior to 2.1.1 across affected packages: willdurand/js-translation-bundle.
What version fixes GHSA-x86x-qhf8-f37w?
Upgrading to 2.1.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is willdurand/js-translation-bundle affected?
Yes, willdurand/js-translation-bundle is affected in releases prior to 2.1.1. Upgrade your dependency to 2.1.1 or later.
What is the CVSS score of GHSA-x86x-qhf8-f37w?
GHSA-x86x-qhf8-f37w has a CVSS v3.1 base score of 9.8 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with GHSA-x86x-qhf8-f37w?
GHSA-x86x-qhf8-f37w is classified under CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') (The product constructs all or part of a command, data structure, or record using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify how it is parsed or interpreted when it is sent to a downstream component.).
How can I check Packagist dependencies for GHSA-x86x-qhf8-f37w?
Run the dependency tree command: 'inspect dependencies for willdurand/js-translation-bundle'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-x86x-qhf8-f37w",
  "modified" : "2024-06-07T22:20:27Z",
  "published" : "2024-06-07T22:20:27Z",
  "aliases" : [ ],
  "summary" : "willdurand/js-translation-bundle potential path traversal attack and remote code injection",
  "details" : "A path traversal and a javascript code injection vulnerabilities were identified in willdurand/js-translation-bundle versions prior to 2.1.1. ",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "willdurand/js-translation-bundle"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.1.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/willdurand/BazingaJsTranslationBundle/commit/7accee93569c3f3d2379f035a41ece66522801fc"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/willdurand/BazingaJsTranslationBundle/commit/df6c0fd603c0192ebc5584991a52a1092c5f60bd"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/willdurand/js-translation-bundle/2014-07-29-1.yaml"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/willdurand/BazingaJsTranslationBundle"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/willdurand/BazingaJsTranslationBundle/releases/tag/v2.1.1"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-22", "CWE-74" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-06-07T22:20:27Z",
    "nvd_published_at" : null
  }
}