GHSA-9phh-r37v-34wh: Github.com/treeverse/lakefs LakeFS Vulnerable To Arbitrary JavaScript Vulnerability

MODERATE
CVSS 5.8
Published
Advisory Summary

GHSA-9phh-r37v-34wh is a MODERATE (CVSS 5.8) lakefs vulnerable to arbitrary javascript vulnerability (General Security Weakness) affecting Github.com/treeverse/lakefs libraries in the Go ecosystem. The issue involves lakefs vulnerable to arbitrary javascript injection via direct link to html files. Remediation is available by upgrading affected packages to version 0.106.0.

GHSA-9phh-r37v-34wh at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-9phh-r37v-34wh
Severity MODERATE
CVSS v3.1 Base Score 5.8
CWE Classification General Security Weakness
Affected Product Github.com/treeverse/lakefs
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 5.8

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

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

How to Fix GHSA-9phh-r37v-34wh

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

github.com/treeverse/lakefs fixed: 0.106.0
Upgrade github.com/treeverse/lakefs to 0.106.0
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 github.com/treeverse/lakefs

How to Check if You Are Affected

To determine whether your application is affected by GHSA-9phh-r37v-34wh, inspect your project dependencies for Github.com/treeverse/lakefs:

inspect dependencies for github.com/treeverse/lakefs

Analyze the terminal output to locate any version of Github.com/treeverse/lakefs in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.106.0), 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 General Security Weakness. In Github.com/treeverse/lakefs, 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

### Impact The browser renders the resulting HTML when opening a direct link to an HTML file via lakeFS. Any JavaScript within that page is executed within the context of the domain lakeFS is running in. An attacker can inject a malicious script inline, download resources from another domain, or make arbitrary HTTP requests. This would allow the attacker to send information to a random domain or carry out lakeFS operations while impersonating the victim. Note that to carry out this attack, an attacker must already have access to upload the malicious HTML file to one or more repositories. It also depends on the victim receiving and opening the link to the malicious HTML file. ### Patches This is fixed in lakeFS version 0.106.0 ### Workarounds There are no known workarounds at this time.

GHSA-9phh-r37v-34wh Affected Github.com/treeverse/lakefs Versions

1 component(s)
Fixed Versions:
0.106.0
Product / Package Ecosystem Affected Versions Fixed Version
github.com/treeverse/lakefs
Go
< 0.106.0
0.106.0

References

Frequently Asked Questions

What is GHSA-9phh-r37v-34wh?
GHSA-9phh-r37v-34wh is a security vulnerability in Github.com/treeverse/lakefs involving lakeFS vulnerable to Arbitrary JavaScript Injection via Direct Link to HTML Files under General Security Weakness.
Which Github.com/treeverse/lakefs versions are affected?
Affected versions include releases prior to 0.106.0 across affected packages: github.com/treeverse/lakefs.
What version fixes GHSA-9phh-r37v-34wh?
Upgrading to 0.106.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/treeverse/lakefs affected?
Yes, github.com/treeverse/lakefs is affected in releases prior to 0.106.0. Upgrade your dependency to 0.106.0 or later.
What is the CVSS score of GHSA-9phh-r37v-34wh?
GHSA-9phh-r37v-34wh has a CVSS v3.1 base score of 5.8 (MODERATE) with vector string CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:N/A:N.
What CWE is associated with GHSA-9phh-r37v-34wh?
GHSA-9phh-r37v-34wh is classified under General Security Weakness.
How can I check Go dependencies for GHSA-9phh-r37v-34wh?
Run the dependency tree command: 'inspect dependencies for github.com/treeverse/lakefs'. 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-9phh-r37v-34wh",
  "modified" : "2023-08-14T21:10:17Z",
  "published" : "2023-08-14T21:10:17Z",
  "aliases" : [ ],
  "summary" : "lakeFS vulnerable to Arbitrary JavaScript Injection via Direct Link to HTML Files",
  "details" : "### Impact\nThe browser renders the resulting HTML when opening a direct link to an HTML file via lakeFS. Any JavaScript within that page is executed within the context of the domain lakeFS is running in.  \nAn attacker can inject a malicious script inline, download resources from another domain, or make arbitrary HTTP requests. This would allow the attacker to send information to a random domain or carry out lakeFS operations while impersonating the victim.  \n\nNote that to carry out this attack, an attacker must already have access to upload the malicious HTML file to one or more repositories. It also depends on the victim receiving and opening the link to the malicious HTML file.\n\n### Patches\nThis is fixed in lakeFS version 0.106.0\n\n### Workarounds\nThere are no known workarounds at this time.\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/treeverse/lakefs"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.106.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/treeverse/lakeFS/security/advisories/GHSA-9phh-r37v-34wh"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/treeverse/lakeFS/commit/2b2a9fa156ad80b0aac043e17533b546b1800603"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/treeverse/lakeFS"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/treeverse/lakeFS/releases/tag/v0.106.0"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-08-14T21:10:17Z",
    "nvd_published_at" : null
  }
}