René's URL Explorer Experiment


Title: Security Report: Full Stack Trace Disclosure in HTTP Error Responses · Issue #2283 · prometheus/client_java · GitHub

Open Graph Title: Security Report: Full Stack Trace Disclosure in HTTP Error Responses · Issue #2283 · prometheus/client_java

X Title: Security Report: Full Stack Trace Disclosure in HTTP Error Responses · Issue #2283 · prometheus/client_java

Description: Security Report: Full Stack Trace Disclosure in HTTP Error Responses 1. Vulnerability Summary Field Value Product prometheus/client_java Affected Version 1.8.0 (main branch); all prior 1.x releases using prometheus-metrics-exporter-https...

Open Graph Description: Security Report: Full Stack Trace Disclosure in HTTP Error Responses 1. Vulnerability Summary Field Value Product prometheus/client_java Affected Version 1.8.0 (main branch); all prior 1.x releases...

X Description: Security Report: Full Stack Trace Disclosure in HTTP Error Responses 1. Vulnerability Summary Field Value Product prometheus/client_java Affected Version 1.8.0 (main branch); all prior 1.x releases...

Opengraph URL: https://github.com/prometheus/client_java/issues/2283

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Security Report: Full Stack Trace Disclosure in HTTP Error Responses","articleBody":"# Security Report: Full Stack Trace Disclosure in HTTP Error Responses\n\n## 1. Vulnerability Summary\n\n| Field                  | Value                                                                                         |\n|------------------------|-----------------------------------------------------------------------------------------------|\n| **Product**            | prometheus/client_java                                                                        |\n| **Affected Version**   | 1.8.0 (main branch); all prior 1.x releases using `prometheus-metrics-exporter-httpserver` are likely affected |\n| **Component**          | `prometheus-metrics-exporter-httpserver`                                                       |\n| **Vulnerable File**    | `prometheus-metrics-exporter-httpserver/src/main/java/io/prometheus/metrics/exporter/httpserver/HttpExchangeAdapter.java` |\n| **Vulnerable Lines**   | 103-141                                                                                       |\n| **CWE**                | CWE-209: Generation of Error Message Containing Sensitive Information                         |\n| **CVSS 3.1 Score**     | **5.3 (Medium)**                                                                              |\n| **CVSS 3.1 Vector**    | `AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`                                                       |\n| **Commit (HEAD)**      | `a017f809`                                                                                    |\n| **Discoverer**         | Security Research                                                                             |\n\n---\n\n## 2. Vulnerability Description\n\nThe `HttpExchangeAdapter` class in the `prometheus-metrics-exporter-httpserver` module exposes full Java stack traces to remote, unauthenticated HTTP clients when any exception occurs during a Prometheus metrics scrape. The method `sendErrorResponseWithStackTrace()` serializes the complete exception stack trace -- including exception type, message, chained causes, class names, method names, file names, and line numbers -- into the HTTP 500 response body and sends it directly to the requesting client.\n\nThe `/metrics` endpoint served by the built-in `HTTPServer` is accessible without authentication by default. No configuration option exists to suppress stack trace output in error responses. Any exception raised during the scrape cycle (configuration errors, metric collection failures, runtime exceptions from custom collectors) triggers the disclosure.\n\nThis is a classic information disclosure vulnerability. Stack traces are considered sensitive information because they reveal internal implementation details that assist attackers in reconnaissance and targeted exploitation.\n\n---\n\n## 3. Affected Component Architecture\n\nThe vulnerability sits at the intersection of three components:\n\n```\nPrometheusScrapeHandler.handleRequest()\n        |\n        |  catches IOException / RuntimeException\n        v\nPrometheusHttpExchange.handleException()  (interface)\n        |\n        |  implemented by\n        v\nHttpExchangeAdapter.sendErrorResponseWithStackTrace()  \u003c-- VULNERABILITY\n        |\n        v\nHTTP 500 Response with full stack trace sent to client\n```\n\n**Key observation:** The servlet-based adapters (`prometheus-metrics-exporter-servlet-jakarta` and `prometheus-metrics-exporter-servlet-javax`) are **not** affected. Their `handleException()` implementations re-throw the exception to the servlet container rather than serializing stack traces into the response. This vulnerability is specific to the standalone `HTTPServer` exporter module.\n\n---\n\n## 4. Vulnerable Code\n\n### 4.1 Primary Vulnerable Method\n\n**File:** `prometheus-metrics-exporter-httpserver/src/main/java/io/prometheus/metrics/exporter/httpserver/HttpExchangeAdapter.java`\n**Lines:** 103-141\n\n```java\nprivate void sendErrorResponseWithStackTrace(Exception requestHandlerException) {\n    if (!responseSent) {\n      responseSent = true;\n      try {\n        StringWriter stringWriter = new StringWriter();\n        PrintWriter printWriter = new PrintWriter(stringWriter);\n        printWriter.write(\"An Exception occurred while scraping metrics: \");\n        requestHandlerException.printStackTrace(new PrintWriter(printWriter));\n        byte[] stackTrace = stringWriter.toString().getBytes(StandardCharsets.UTF_8);\n        httpExchange.getResponseHeaders().set(\"Content-Type\", \"text/plain; charset=utf-8\");\n        httpExchange.sendResponseHeaders(500, stackTrace.length);\n        httpExchange.getResponseBody().write(stackTrace);\n      } catch (IOException errorWriterException) {\n        // ...\n      }\n    }\n}\n```\n\nThe critical issue is the call to `requestHandlerException.printStackTrace(new PrintWriter(printWriter))` on line 110, which dumps the entire stack trace into a `StringWriter` whose contents are then written verbatim to the HTTP response body on line 114.\n\n### 4.2 Call Sites\n\nThe vulnerable method is invoked from the two `handleException()` overloads (lines 93-101):\n\n```java\n@Override\npublic void handleException(IOException e) throws IOException {\n    sendErrorResponseWithStackTrace(e);\n}\n\n@Override\npublic void handleException(RuntimeException e) {\n    sendErrorResponseWithStackTrace(e);\n}\n```\n\n### 4.3 Trigger Point\n\n`PrometheusScrapeHandler.handleRequest()` (lines 99-102) routes all caught exceptions through the exchange's `handleException()`:\n\n```java\npublic void handleRequest(PrometheusHttpExchange exchange) throws IOException {\n    try {\n      // ... scrape metrics\n    } catch (IOException e) {\n      exchange.handleException(e);\n    } catch (RuntimeException e) {\n      exchange.handleException(e);\n    } finally {\n      exchange.close();\n    }\n}\n```\n\n---\n\n## 5. CVSS 3.1 Detailed Breakdown\n\n| Metric                     | Value          | Justification                                                                                         |\n|----------------------------|----------------|-------------------------------------------------------------------------------------------------------|\n| **Attack Vector (AV)**     | Network (N)    | The `/metrics` HTTP endpoint is network-accessible. The `HTTPServer` binds to a network socket (default: all interfaces). |\n| **Attack Complexity (AC)** | Low (L)        | No special conditions required. The attacker only needs network access to the metrics port. An exception must occur during scraping, which can be triggered via environment variable misconfiguration or may happen naturally. |\n| **Privileges Required (PR)** | None (N)    | The `HTTPServer` does not require authentication by default. The `Authenticator` is an optional builder parameter that is `null` unless explicitly configured. |\n| **User Interaction (UI)**  | None (N)       | No user interaction is needed. The attacker sends an HTTP request directly to the endpoint.            |\n| **Scope (S)**              | Unchanged (U)  | The vulnerability affects only the confidentiality of the vulnerable component; it does not cross trust boundaries to impact other components. |\n| **Confidentiality (C)**    | Low (L)        | The disclosed information (stack traces, class names, library versions, configuration values, file paths) provides valuable reconnaissance data but does not directly expose credentials, secrets, or user data. |\n| **Integrity (I)**          | None (N)       | No data modification occurs.                                                                          |\n| **Availability (A)**       | None (N)       | No denial-of-service impact.                                                                          |\n\n**CVSS 3.1 Vector String:** `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`\n**CVSS 3.1 Base Score:** **5.3 (Medium)**\n\n---\n\n## 6. Information Disclosed in Stack Traces\n\nA stack trace exposed via this vulnerability can reveal the following categories of sensitive information:\n\n| Category                          | Example                                                                                              |\n|-----------------------------------|------------------------------------------------------------------------------------------------------|\n| **Library version**               | Package naming conventions and class structures identify the exact `client_java` version             |\n| **Internal class names**          | `io.prometheus.metrics.config.Util`, `io.prometheus.metrics.config.HistogramProperties`, etc.        |\n| **Internal method names**         | `parseDoubleList`, `collect`, `scrape`                                                               |\n| **Source file names and line numbers** | `Util.java:90`, `HistogramProperties.java:45`, `Histogram.java:198`                             |\n| **Configuration values**          | Exception messages from `PrometheusPropertiesException` embed the invalid configuration value        |\n| **JVM internals**                 | Thread stack frames expose JVM version, internal classes, and runtime behavior                        |\n| **Application structure**         | Custom collector class names, application framework stack frames                                     |\n| **File system paths**             | Absolute paths may appear in exception messages (e.g., properties file locations)                    |\n| **Package structure**             | Full package hierarchy of the application and its dependencies                                       |\n\n---\n\n## 7. Proof of Concept\n\n### 7.1 Prerequisites\n\n- A Java application using `prometheus-metrics-exporter-httpserver` with the built-in `HTTPServer`\n- Network access to the metrics HTTP port\n\n### 7.2 Reproduction Steps\n\n**Step 1: Configure an invalid property to guarantee an exception during scrape.**\n\n```bash\nexport IO_PROMETHEUS_METRICS_HISTOGRAM_CLASSIC_UPPER_BOUNDS=invalid\n```\n\nThis environment variable sets an invalid value for the histogram upper bounds configuration. When a Histogram metric is collected, `HistogramProperties` attempts to parse this value, throwing a `PrometheusPropertiesException`.\n\n**Step 2: Start the application with a Prometheus HTTP server.**\n\nAny Java application using the `HTTPServer` builder pattern:\n\n```java\nimport io.prometheus.metrics.core.metrics.Histogram;\nimport io.prometheus.metrics.exporter.httpserver.HTTPServer;\nimport io.prometheus.metrics.model.registry.PrometheusRegistry;\n\npublic class VulnerableApp {\n    public static void main(String[] args) throws Exception {\n        Histogram histogram = Histogram.builder()\n            .name(\"example_histogram\")\n            .help(\"An example histogram\")\n            .register();\n\n        HTTPServer server = HTTPServer.builder()\n            .port(9400)\n            .buildAndStart();\n\n        System.out.println(\"Server started on port \" + server.getPort());\n        Thread.currentThread().join();\n    }\n}\n```\n\n**Step 3: Request the metrics endpoint.**\n\n```bash\ncurl -s http://localhost:9400/metrics\n```\n\n**Step 4: Observe the full stack trace in the response.**\n\nExpected HTTP 500 response body:\n\n```\nAn Exception occurred while scraping metrics: io.prometheus.metrics.config.PrometheusPropertiesException:\n  io.prometheus.metrics.histogram.classic_upper_bounds=invalid: Expecting comma separated list of double values\n    at io.prometheus.metrics.config.Util.parseDoubleList(Util.java:90)\n    at io.prometheus.metrics.config.HistogramProperties.\u003cinit>(HistogramProperties.java:45)\n    at io.prometheus.metrics.core.metrics.Histogram.collect(Histogram.java:198)\n    at io.prometheus.metrics.model.registry.PrometheusRegistry.scrape(PrometheusRegistry.java:67)\n    at io.prometheus.metrics.exporter.common.PrometheusScrapeHandler.scrape(PrometheusScrapeHandler.java:143)\n    at io.prometheus.metrics.exporter.common.PrometheusScrapeHandler.handleRequest(PrometheusScrapeHandler.java:63)\n    at io.prometheus.metrics.exporter.httpserver.MetricsHandler.handle(MetricsHandler.java:25)\n    at com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:77)\n    at sun.net.httpserver.AuthFilter.doFilter(AuthFilter.java:82)\n    at com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:80)\n    at sun.net.httpserver.ServerImpl$Exchange$LinkHandler.handle(ServerImpl.java:692)\n    at com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:77)\n    ...\n```\n\n### 7.3 Attack Scenario Without Misconfiguration\n\nEven without attacker-controlled misconfiguration, stack traces are disclosed when:\n\n1. A custom `Collector` registered in the `PrometheusRegistry` throws a `RuntimeException` during `collect()` (e.g., `NullPointerException`, `IllegalStateException`).\n2. A transient I/O error occurs during metric serialization.\n3. An internal consistency error is triggered by concurrent metric updates.\n\nIn production environments, these conditions are not uncommon, making the vulnerability exploitable through passive observation as well as active triggering.\n\n---\n\n## 8. Impact Analysis\n\n### 8.1 Direct Impact\n\n- **Information Disclosure:** Every error during metrics scraping sends implementation details to the network client. In environments where the metrics port is exposed (common in Kubernetes, cloud deployments, and monitoring infrastructure), any network-adjacent attacker can collect this information.\n\n### 8.2 Reconnaissance Value\n\nThe disclosed stack traces provide an attacker with:\n\n1. **Dependency mapping:** Exact library names and versions enable identification of known CVEs in dependencies.\n2. **Code path analysis:** Method names and line numbers reveal execution flow, helping identify injection points or logic flaws.\n3. **Configuration inference:** Exception messages from `PrometheusPropertiesException` and similar classes expose configuration parameters and their values.\n4. **Technology fingerprinting:** JVM version, application server type, and framework stack frames identify the technology stack.\n\n### 8.3 Deployment Context\n\nThe `HTTPServer` component is commonly used in:\n\n- Standalone Java applications without a servlet container\n- Java agents for JVM instrumentation\n- Microservices exposing metrics alongside application traffic\n\nIn these deployments, the metrics port is frequently accessible to broader network segments than intended, amplifying the exposure risk.\n\n---\n\n## 9. Scope Clarification\n\n### Affected Module\n\n| Module | Affected | Reason |\n|--------|----------|--------|\n| `prometheus-metrics-exporter-httpserver` | **Yes** | `HttpExchangeAdapter.sendErrorResponseWithStackTrace()` writes full stack traces to the HTTP response body |\n\n### Unaffected Modules\n\n| Module | Affected | Reason |\n|--------|----------|--------|\n| `prometheus-metrics-exporter-servlet-jakarta` | No | `handleException()` re-throws the exception to the servlet container (`throw e;`) |\n| `prometheus-metrics-exporter-servlet-javax` | No | `handleException()` re-throws the exception to the servlet container (`throw e;`) |\n\n---\n\n## 10. Recommended Remediation\n\n### 10.1 Immediate Fix\n\nReplace the stack trace serialization in `sendErrorResponseWithStackTrace()` with a generic error message. Log the full stack trace server-side for debugging purposes.\n\n```java\nprivate void sendErrorResponseWithStackTrace(Exception requestHandlerException) {\n    if (!responseSent) {\n      responseSent = true;\n      try {\n        // Log the full stack trace server-side only\n        Logger.getLogger(this.getClass().getName())\n            .log(Level.SEVERE,\n                \"An Exception occurred while scraping metrics.\",\n                requestHandlerException);\n\n        // Send a generic error message to the client\n        byte[] message = \"An internal error occurred while scraping metrics.\\n\"\n            .getBytes(StandardCharsets.UTF_8);\n        httpExchange.getResponseHeaders().set(\"Content-Type\", \"text/plain; charset=utf-8\");\n        httpExchange.sendResponseHeaders(500, message.length);\n        httpExchange.getResponseBody().write(message);\n      } catch (IOException errorWriterException) {\n        // ... existing error handling\n      }\n    }\n}\n```\n\n### 10.2 Configurable Error Verbosity\n\nIntroduce a configuration property (e.g., `io.prometheus.metrics.exporter.httpserver.debug`) that controls whether detailed error information is included in HTTP responses. Default to `false` (generic messages only).\n\n### 10.3 Defense in Depth\n\n- Document that the metrics HTTP port should be protected by network-level access controls (firewall rules, network policies).\n- Encourage use of the `Authenticator` builder option when the metrics port is exposed to untrusted networks.\n- Consider implementing the same error-handling pattern used by the servlet adapters, which delegate exception handling to the container rather than serializing stack traces.\n\n---\n\n## 11. References\n\n- **CWE-209:** [Generation of Error Message Containing Sensitive Information](https://cwe.mitre.org/data/definitions/209.html)\n- **OWASP:** [Improper Error Handling](https://owasp.org/www-community/Improper_Error_Handling)\n- **OWASP Testing Guide:** [Testing for Stack Traces (OTG-ERR-002)](https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Tests/08-Testing_for_Error_Handling/02-Testing_for_Stack_Traces)\n- **Source Repository:** [prometheus/client_java](https://github.com/prometheus/client_java)\n- **Vulnerable File:** [`HttpExchangeAdapter.java`](https://github.com/prometheus/client_java/blob/main/prometheus-metrics-exporter-httpserver/src/main/java/io/prometheus/metrics/exporter/httpserver/HttpExchangeAdapter.java)\n","author":{"url":"https://github.com/manqingzhou","@type":"Person","name":"manqingzhou"},"datePublished":"2026-07-08T02:56:51Z","url":"https://github.com/prometheus/client_java/issues/2283"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:33262623-4263-35bf-e930-c1ecbd4becda
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB402:2C92D8:2A6D5E:382179:6AFBB748
html-safe-nonce6156581fc3331c5041368fceaeb81d64e4f66ccd0f825f61d266d98c572bc0f2
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNDAyOjJDOTJEODoyQTZENUU6MzgyMTc5OjZBRkJCNzQ4IiwidmlzaXRvcl9pZCI6IjQ0NjU2MTUxMTYwOTI4MDcyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac54495b1216e2dc0ca013058b891fce5e5230758dedc23f4e398f5f41d66124c2
hovercard-subject-tagissue:4833915062
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/prometheus/client_java/2283/issue_layout
twitter:imagehttps://opengraph.githubassets.com/9c2fa603a928174cdf635188793f5cdee9d9b9bcb3c33f6a6040d6861c813301/prometheus/client_java/issues/2283
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/9c2fa603a928174cdf635188793f5cdee9d9b9bcb3c33f6a6040d6861c813301/prometheus/client_java/issues/2283
og:image:altSecurity Report: Full Stack Trace Disclosure in HTTP Error Responses 1. Vulnerability Summary Field Value Product prometheus/client_java Affected Version 1.8.0 (main branch); all prior 1.x releases...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemanqingzhou
hostnamegithub.com
expected-hostnamegithub.com
None2b2ef9c1578c18d8ed27027940544c958743213cf4461659f14d3ccdf51e162c
turbo-cache-controlno-preview
go-importgithub.com/prometheus/client_java git https://github.com/prometheus/client_java.git
octolytics-dimension-user_id3380462
octolytics-dimension-user_loginprometheus
octolytics-dimension-repository_id7997879
octolytics-dimension-repository_nwoprometheus/client_java
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id7997879
octolytics-dimension-repository_network_root_nwoprometheus/client_java
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasee4cce0e99cf61481a318ff12c2e8580153a6c7c6
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/prometheus/client_java/issues/2283#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fprometheus%2Fclient_java%2Fissues%2F2283
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fprometheus%2Fclient_java%2Fissues%2F2283
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=prometheus%2Fclient_java
Reloadhttps://github.com/prometheus/client_java/issues/2283
Reloadhttps://github.com/prometheus/client_java/issues/2283
Reloadhttps://github.com/prometheus/client_java/issues/2283
prometheushttps://github.com/prometheus
client_javahttps://github.com/prometheus/client_java
Codehttps://github.com/prometheus/client_java
Issues12 (12)https://github.com/prometheus/client_java/issues
Pull requests18 (18)https://github.com/prometheus/client_java/pulls
Actionshttps://github.com/prometheus/client_java/actions
Projectshttps://github.com/prometheus/client_java/projects
Security and qualityhttps://github.com/prometheus/client_java/security
Insightshttps://github.com/prometheus/client_java/pulse
https://github.com/prometheus/client_java
New issuehttps://github.com/login?return_to=https://github.com/prometheus/client_java/issues/2283
New issuehttps://github.com/login?return_to=https://github.com/prometheus/client_java/issues/2283
#2332https://github.com/prometheus/client_java/pull/2332
Security Report: Full Stack Trace Disclosure in HTTP Error Responseshttps://github.com/prometheus/client_java/issues/2283#top
#2332https://github.com/prometheus/client_java/pull/2332
https://github.com/manqingzhou
manqingzhouhttps://github.com/manqingzhou
on Jul 8, 2026https://github.com/prometheus/client_java/issues/2283#issue-4833915062
Generation of Error Message Containing Sensitive Informationhttps://cwe.mitre.org/data/definitions/209.html
Improper Error Handlinghttps://owasp.org/www-community/Improper_Error_Handling
Testing for Stack Traces (OTG-ERR-002)https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Tests/08-Testing_for_Error_Handling/02-Testing_for_Stack_Traces
prometheus/client_javahttps://github.com/prometheus/client_java
HttpExchangeAdapter.javahttps://github.com/prometheus/client_java/blob/main/prometheus-metrics-exporter-httpserver/src/main/java/io/prometheus/metrics/exporter/httpserver/HttpExchangeAdapter.java
arnabnandy7https://github.com/arnabnandy7
on Jul 8, 2026https://github.com/prometheus/client_java/issues/2283#event-27709297242
prometheus#2283 fix: hide scrape stack traces from HTTP responseshttps://github.com/arnabnandy7/client_java/commit/36049d10a820a536f8161e04b7b1456f8f93f3d3
prometheus#2283https://github.com/prometheus/client_java/issues/2283
36049d1https://github.com/arnabnandy7/client_java/commit/36049d10a820a536f8161e04b7b1456f8f93f3d3
prometheus#2283 fix: hide scrape stack traces from HTTP responseshttps://github.com/arnabnandy7/client_java/commit/5a344d2590a8e5b7c4f4e6ed24ddef9e4fbc61b0
prometheus#2283https://github.com/prometheus/client_java/issues/2283
5a344d2https://github.com/arnabnandy7/client_java/commit/5a344d2590a8e5b7c4f4e6ed24ddef9e4fbc61b0
prometheus#2283 prometheus#2284 fix: harden HTTPServer failure handlinghttps://github.com/arnabnandy7/client_java/commit/8213bda912b7ac46db7265432d0e55c9e700adf1
prometheus#2283https://github.com/prometheus/client_java/issues/2283
prometheus#2284https://github.com/prometheus/client_java/issues/2284
8213bdahttps://github.com/arnabnandy7/client_java/commit/8213bda912b7ac46db7265432d0e55c9e700adf1
prometheus#2283 prometheus#2284 fix: harden HTTPServer failure handlinghttps://github.com/arnabnandy7/client_java/commit/6ebd42f3a28eb11e0d6b47b44c75f16f8f0e6fa1
prometheus#2283https://github.com/prometheus/client_java/issues/2283
prometheus#2284https://github.com/prometheus/client_java/issues/2284
6ebd42fhttps://github.com/arnabnandy7/client_java/commit/6ebd42f3a28eb11e0d6b47b44c75f16f8f0e6fa1
https://github.com/manqingzhou
manqingzhouhttps://github.com/manqingzhou
on Jul 15, 2026https://github.com/prometheus/client_java/issues/2283#issuecomment-4976287221
@dhoardhttps://github.com/dhoard
https://github.com/dhoard
dhoardhttps://github.com/dhoard
on Jul 17, 2026https://github.com/prometheus/client_java/issues/2283#issuecomment-5005171552
@manqingzhouhttps://github.com/manqingzhou
https://prometheus.io/docs/operating/security/https://prometheus.io/docs/operating/security/
zeitlingerhttps://github.com/zeitlinger
completedhttps://github.com/prometheus/client_java/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#2332https://github.com/prometheus/client_java/pull/2332
on Aug 26, 2026https://github.com/prometheus/client_java/issues/2283#event-30025623317
zeitlingerhttps://github.com/zeitlinger
on Aug 26, 2026https://github.com/prometheus/client_java/issues/2283#event-30025828824
fix: hide HTTP scrape error details (prometheus#2332)https://github.com/zeitlinger/client_java/commit/f6d9df52bc022bfabaa82fd67375f529e4371038
prometheus#2332https://github.com/prometheus/client_java/pull/2332
f6d9df5https://github.com/zeitlinger/client_java/commit/f6d9df52bc022bfabaa82fd67375f529e4371038
Sign up for freehttps://github.com/signup?return_to=https://github.com/prometheus/client_java/issues/2283
Sign in to commenthttps://github.com/login?return_to=https://github.com/prometheus/client_java/issues/2283
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.