Vulnerabilities in pkg:golang/github.com/loft-sh/devspace

PACKAGE
Advisory Identifier: GHSA-hqwm-7x7x-8379
Advisory Summary

CVE-2026-42283 is a HIGH (CVSS 7.7) remote code execution vulnerability (CWE-306: Missing Authentication for Critical Function) affecting Github.com/loft sh/devspace libraries in the Go ecosystem. The issue involves devspace ui server websocket checkorigin does not validate source. Remediation is available by upgrading affected packages to version 6.3.21.

2 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:golang/github.com/loft-sh/devspace

2 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:golang/github.com/loft-sh/devspace. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-hqwm-7x7x-8379 CVE-2026-42283 HIGH DevSpace UI Server WebSocket CheckOrigin does not validate source
GHSA-6h8c-gw33-cjm2 CVE-2020-15391 CRITICAL DevSpace vulnerable to remote code execution

CVE-2026-42283 at a Glance

CVE Identifier CVE-2026-42283
GHSA Identifier GHSA-hqwm-7x7x-8379
Severity HIGH
CVSS v3.1 Base Score 7.7
CWE Classification CWE-306: Missing Authentication for Critical Function
Affected Product Github.com/loft sh/devspace
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 7.7

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

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

How to Fix CVE-2026-42283

To remediate this vulnerability, upgrade all affected Github.com/loft sh/devspace 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/loft-sh/devspace fixed: 6.3.21
Upgrade github.com/loft-sh/devspace to 6.3.21
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/loft-sh/devspace

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-42283, inspect your project dependencies for Github.com/loft sh/devspace:

inspect dependencies for github.com/loft-sh/devspace

Analyze the terminal output to locate any version of Github.com/loft sh/devspace in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 6.3.21), 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-306: Missing Authentication for Critical Function, where the product does not perform any authentication for functionality that requires a provable user identity or consumes a significant amount of resources. In Github.com/loft sh/devspace, 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

### Description DevSpace's UI server WebSocket accepts connections from all origins by default, and therefore several endpoints are exposed via this WebSocket. When a developer runs the DevSpace UI and at the same time uses a browser to access the internet, a malicious website they visit can use their browser to establish a cross-origin WebSocket connection to `ws://127.0.0.1:8090`. This allows an attacker to access: * `/api/logs` to stream real-time pod logs * `/api/enter` to open an interactive shell inside the running pod * `/api/command` to execute pre-defined pipeline commands ### Patches Versions 6.3.21 and above are patched. ### Resources [gorilla/websocket CheckOrigin documentation](https://pkg.go.dev/github.com/gorilla/websocket#hdr-Origin_Considerations) ### Installation Options Devspace is no longer publishing to NPM or Yarn, please continue to use our [other installation methods](https://www.devspace.sh/docs/getting-started/installation) to get updates in the future, including this patch. ### Credit DevSpace thanks @b0b0haha for finding and reporting this vulnerability.

CVE-2026-42283 Affected Github.com/loft sh/devspace Versions

1 component(s)
Fixed Versions:
6.3.21
Product / Package Ecosystem Affected Versions Fixed Version
github.com/loft-sh/devspace
Go
≥ 6.3.20
< 6.3.21
All 1 versions
6.3.20
6.3.21

References

Frequently Asked Questions

What is CVE-2026-42283?
CVE-2026-42283 is a security vulnerability in Github.com/loft sh/devspace involving DevSpace UI Server WebSocket CheckOrigin does not validate source under CWE-306: Missing Authentication for Critical Function.
Which Github.com/loft sh/devspace versions are affected?
Affected versions include releases prior to 6.3.21 across affected packages: github.com/loft-sh/devspace.
What version fixes CVE-2026-42283?
Upgrading to 6.3.21 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/loft-sh/devspace affected?
Yes, github.com/loft-sh/devspace is affected in releases prior to 6.3.21. Upgrade your dependency to 6.3.21 or later.
What is the CVSS score of CVE-2026-42283?
CVE-2026-42283 has a CVSS v3.1 base score of 7.7 (HIGH) with vector string CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H.
What CWE is associated with CVE-2026-42283?
CVE-2026-42283 is classified under CWE-306: Missing Authentication for Critical Function (The product does not perform any authentication for functionality that requires a provable user identity or consumes a significant amount of resources.).
How can I check Go dependencies for CVE-2026-42283?
Run the dependency tree command: 'inspect dependencies for github.com/loft-sh/devspace'. 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-hqwm-7x7x-8379",
  "modified" : "2026-05-14T20:51:39Z",
  "published" : "2026-05-06T17:05:57Z",
  "aliases" : [ "CVE-2026-42283" ],
  "summary" : "DevSpace UI Server WebSocket CheckOrigin does not validate source",
  "details" : "### Description\n\nDevSpace's UI server WebSocket accepts connections from all origins by default, and therefore several endpoints are exposed via this WebSocket. When a developer runs the DevSpace UI and at the same time uses a browser to access the internet, a malicious website they visit can use their browser to establish a cross-origin WebSocket connection to `ws://127.0.0.1:8090`. This allows an attacker to access: \n* `/api/logs` to stream real-time pod logs\n* `/api/enter` to open an interactive shell inside the running pod\n* `/api/command` to execute pre-defined pipeline commands\n\n### Patches\n\nVersions 6.3.21 and above are patched.\n\n### Resources\n\n[gorilla/websocket CheckOrigin documentation](https://pkg.go.dev/github.com/gorilla/websocket#hdr-Origin_Considerations)\n\n### Installation Options\n\nDevspace is no longer publishing to NPM or Yarn, please continue to use our [other installation methods](https://www.devspace.sh/docs/getting-started/installation) to get updates in the future, including this patch.\n\n### Credit\n\nDevSpace thanks @b0b0haha for finding and reporting this vulnerability.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/loft-sh/devspace"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "6.3.20"
      }, {
        "fixed" : "6.3.21"
      } ]
    } ],
    "versions" : [ "6.3.20" ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/devspace-sh/devspace/security/advisories/GHSA-hqwm-7x7x-8379"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-42283"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/devspace-sh/devspace"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-200", "CWE-306" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-05-06T17:05:57Z",
    "nvd_published_at" : "2026-05-14T16:16:21Z"
  }
}