GHSA-h58c-xccx-75m3: Coder Stored HTML Injection Vulnerability

LOW
CVSS 3.4
CWE-74
Published
Advisory Summary

GHSA-h58c-xccx-75m3 is a LOW (CVSS 3.4) stored html injection vulnerability (CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')) affecting Coder libraries in the Go ecosystem. The issue involves stored html injection via unescaped applicationname and logourl appearance settings. Remediation is available by upgrading affected packages to version 2.32.7, 2.29.17, 2.34.2, 2.33.8.

GHSA-h58c-xccx-75m3 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-h58c-xccx-75m3
Severity LOW
CVSS v3.1 Base Score 3.4
CWE Classification CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')
Affected Product Coder
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 3.4

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

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

How to Fix GHSA-h58c-xccx-75m3

To remediate this vulnerability, upgrade all affected Coder 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/coder/coder/v2 fixed: 2.32.7
Upgrade github.com/coder/coder/v2 to 2.32.7
github.com/coder/coder/v2 fixed: 2.29.17
Upgrade github.com/coder/coder/v2 to 2.29.17
github.com/coder/coder/v2 fixed: 2.34.2
Upgrade github.com/coder/coder/v2 to 2.34.2
github.com/coder/coder/v2 fixed: 2.33.8
Upgrade github.com/coder/coder/v2 to 2.33.8
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/coder/coder/v2

How to Check if You Are Affected

To determine whether your application is affected by GHSA-h58c-xccx-75m3, inspect your project dependencies for Coder:

inspect dependencies for github.com/coder/coder/v2

Analyze the terminal output to locate any version of Coder in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.32.7), 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 Coder, 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

### Summary The `ApplicationName` and `LogoURL` appearance settings were rendered into HTML output without sufficient escaping which let a highly privileged Owner-role user inject HTML into the Coder dashboard and SMTP notification emails. > **Note:** Exploitation requires the `Owner` role which already holds full administrative control of the deployment so practical impact is limited. ### Impact An Owner-role user could store HTML markup in the `ApplicationName` or `LogoURL` appearance settings that later rendered in the dashboard and in SMTP notification emails which results in stored HTML injection against other users of the deployment. Exploitation requires the highly privileged `Owner` role. ### Patches The fix escapes the `ApplicationName` and `LogoURL` appearance values in HTML output before rendering. The fix was backported to all supported release lines: | Release line | Patched version | |---|---| | 2.34 | [v2.34.2](https://github.com/coder/coder/releases/tag/v2.34.2) | | 2.33 | [v2.33.8](https://github.com/coder/coder/releases/tag/v2.33.8) | | 2.32 | [v2.32.7](https://github.com/coder/coder/releases/tag/v2.32.7) | | 2.29 (ESR) | [v2.29.17](https://github.com/coder/coder/releases/tag/v2.29.17) | ### Workarounds Restrict the `Owner` role to trusted administrators. ### References - Fix: #25804 ### Credits We'd like to thank Anthropic's Security Team (ANT-2026-22453) for independently disclosing this issue!

GHSA-h58c-xccx-75m3 Affected Coder Versions

4 component(s)
Fixed Versions:
2.32.72.29.172.34.22.33.8
Product / Package Ecosystem Affected Versions Fixed Version
github.com/coder/coder/v2
Go
≥ 2.30.0
< 2.32.7
2.32.7
github.com/coder/coder/v2
Go
< 2.29.17
2.29.17
github.com/coder/coder/v2
Go
≥ 2.34.0
< 2.34.2
2.34.2
github.com/coder/coder/v2
Go
≥ 2.33.0
< 2.33.8
2.33.8

References

Frequently Asked Questions

What is GHSA-h58c-xccx-75m3?
GHSA-h58c-xccx-75m3 is a security vulnerability in Coder involving Stored HTML injection via unescaped ApplicationName and LogoURL appearance settings under CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection').
Which Coder versions are affected?
Affected versions include releases prior to 2.32.7, 2.29.17, 2.34.2, 2.33.8 across affected packages: github.com/coder/coder/v2.
What version fixes GHSA-h58c-xccx-75m3?
Upgrading to 2.32.7, 2.29.17, 2.34.2, 2.33.8 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/coder/coder/v2 affected?
Yes, github.com/coder/coder/v2 is affected in releases prior to 2.32.7, 2.29.17, 2.34.2, 2.33.8. Upgrade your dependency to 2.32.7, 2.29.17, 2.34.2, 2.33.8 or later.
What is the CVSS score of GHSA-h58c-xccx-75m3?
GHSA-h58c-xccx-75m3 has a CVSS v3.1 base score of 3.4 (LOW) with vector string CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:N/I:L/A:N.
What CWE is associated with GHSA-h58c-xccx-75m3?
GHSA-h58c-xccx-75m3 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 Go dependencies for GHSA-h58c-xccx-75m3?
Run the dependency tree command: 'inspect dependencies for github.com/coder/coder/v2'. 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-h58c-xccx-75m3",
  "modified" : "2026-08-20T18:34:26Z",
  "published" : "2026-08-20T18:34:26Z",
  "aliases" : [ ],
  "summary" : "Coder: Stored HTML injection via unescaped ApplicationName and LogoURL appearance settings",
  "details" : "### Summary\n\nThe `ApplicationName` and `LogoURL` appearance settings were rendered into HTML output without sufficient escaping which let a highly privileged Owner-role user inject HTML into the Coder dashboard and SMTP notification emails.\n\n> **Note:** Exploitation requires the `Owner` role which already holds full administrative control of the deployment so practical impact is limited.\n\n### Impact\n\nAn Owner-role user could store HTML markup in the `ApplicationName` or `LogoURL` appearance settings that later rendered in the dashboard and in SMTP notification emails which results in stored HTML injection against other users of the deployment. Exploitation requires the highly privileged `Owner` role.\n\n### Patches\n\nThe fix escapes the `ApplicationName` and `LogoURL` appearance values in HTML output before rendering.\n\nThe fix was backported to all supported release lines:\n\n| Release line | Patched version |\n|---|---|\n| 2.34 | [v2.34.2](https://github.com/coder/coder/releases/tag/v2.34.2) |\n| 2.33 | [v2.33.8](https://github.com/coder/coder/releases/tag/v2.33.8) |\n| 2.32 | [v2.32.7](https://github.com/coder/coder/releases/tag/v2.32.7) |\n| 2.29 (ESR) | [v2.29.17](https://github.com/coder/coder/releases/tag/v2.29.17) |\n\n### Workarounds\n\nRestrict the `Owner` role to trusted administrators.\n\n### References\n\n- Fix: #25804\n\n### Credits\n\nWe'd like to thank Anthropic's Security Team (ANT-2026-22453) for independently disclosing this issue!",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:N/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/coder/coder/v2"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.34.0"
      }, {
        "fixed" : "2.34.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/coder/coder/v2"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.33.0"
      }, {
        "fixed" : "2.33.8"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/coder/coder/v2"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.30.0"
      }, {
        "fixed" : "2.32.7"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/coder/coder/v2"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.29.17"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/coder/coder/security/advisories/GHSA-h58c-xccx-75m3"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/coder/coder/pull/25804"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/coder/coder/commit/ec19bc41d80568c0eb9f74b526e8cc8ffbe3be9a"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/coder/coder"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/coder/coder/releases/tag/v2.29.17"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/coder/coder/releases/tag/v2.32.7"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/coder/coder/releases/tag/v2.33.8"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/coder/coder/releases/tag/v2.34.2"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-74" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-08-20T18:34:26Z",
    "nvd_published_at" : null
  }
}