GHSA-9phh-r37v-34wh: Github.com/treeverse/lakefs LakeFS Vulnerable To Arbitrary JavaScript Vulnerability
MODERATEGHSA-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
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).
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.
Upgrade github.com/treeverse/lakefs to 0.106.0
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
GHSA-9phh-r37v-34wh Affected Github.com/treeverse/lakefs Versions
1 component(s)| 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?
Which Github.com/treeverse/lakefs versions are affected?
What version fixes GHSA-9phh-r37v-34wh?
Is github.com/treeverse/lakefs affected?
What is the CVSS score of GHSA-9phh-r37v-34wh?
What CWE is associated with GHSA-9phh-r37v-34wh?
How can I check Go dependencies for GHSA-9phh-r37v-34wh?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}