CWE-598: Use of HTTP Request With Sensitive Query String

What is CWE-598?

CWE-598 is Use of HTTP Request With Sensitive Query String. The flaw arises when The web application uses an HTTP method to process a request, but the request includes sensitive information in the query string. The database currently holds 27 vulnerabilities mapped to CWE-598 and none of them are in the CISA Known Exploited Vulnerabilities catalog.

OWASP Top 10 (2025) rank6 — A06:2025 — Insecure Design
Related CVES (365 days)27
AbstractionVariant
Likelihood of exploit-

Vulnerabilities mapped to CWE-598

27 vulnerabilities125% increase year over year

No data

No vulnerability data in CISA KEV for CWE-598

Official definition

ByMitre CWE

The web application uses an HTTP method to process a request, but the request includes sensitive information in the query string.

While a query string is frequently used for GET methods, sometimes it is included with other methods such as POST, DELETE, and PUT. The query string for the URL could be saved in the browser's history, passed through Referers to other web sites, stored in web logs, or otherwise recorded in other sources.

Characteristics

Modes of introduction

  • Architecture and Design
  • Implementation

Common consequences

ImpactScopeExplanation
Read Application DataConfidentialityAt a minimum, attackers can garner information from query strings that can be utilized in escalating their method of attack, such as information about the internal workings of the application or database column names. Successful exploitation of query string parameter vulnerabilities could lead to an attacker impersonating a legitimate user, obtaining proprietary data, or simply executing actions not intended by the application developers. Examples of sensitive information may include secrets such as session identifiers, passwords, access tokens, or API keys; Personally Identifiable Information (PII) such as email addresses or phone numbers; records or logs of private activities; communications that are expected to be private; etc. Successful exploitation of query string parameter vulnerabilities could lead to an attacker impersonating a legitimate user, obtaining proprietary data, or simply executing actions not intended by the application developers.

Risk mitigations

  1. ImplementationWhen sending sensitive information, only include it in the request body or request headers instead of the query string. This may require avoiding use of GET requests.

Detection methods

MethodApproachEffectiveness
Automated Static AnalysisAutomated static analysis, commonly referred to as Static Application Security Testing (SAST), can find some instances of this weakness by analyzing source code (or binary/compiled code) without having to execute it. Typically, this is done by building a model of data flow and control flow, then searching for potentially-vulnerable patterns that connect "sources" (origins of input) with "sinks" (destinations where the data interacts with external components, a lower layer such as the OS, etc.)High

Representative vulnerabilities

Sources (3)

CWE™ Program, operated by The MITRE Corporation. Copyright © 2006–2026, The MITRE Corporation. The MITRE Corporation hereby grants you a non-exclusive, royalty-free license to use CWE for research, development, and commercial purposes. CWE Terms of Use.

Learn more

Run an in-depth assessment with complete web risk management

CyStack VulnScan continuously discovers assets, validates vulnerabilities, and helps security teams prioritize remediation across the organization.