Skip to main content
LowContentOWASP A05:2021CWE-200

How to fix: Server version disclosed in response header

A response header carries a value that matches a version-like pattern (e.g. '1.0', '2.3.1').

Why it matters

Version strings in headers give attackers a target list of CVEs without further probing.

Headers like Server, X-Powered-By, X-AspNet-Version, NEL, and Report-To frequently leak exact upstream versions. Strip them at the edge or use generic placeholders.

How to fix it

  1. 1Set server_tokens off; in nginx or strip the Server header at the reverse proxy.
  2. 2Disable X-Powered-By by setting `poweredByHeader: false` in Next.js or removing the Express x-powered-by setting.
  3. 3Genericize NEL and Report-To headers or remove the 'version' field.

Code examples

Nginx

nginx
server_tokens off;
proxy_hide_header X-Powered-By;
proxy_hide_header Server;

Next.js

JavaScript
const nextConfig = { poweredByHeader: false };

References

Detected automatically by VulnRadar. The check id is version-disclosure, stable across every scan so you can filter or diff on it.

See every content check

Questions

How severe is Server version disclosed in response header?
VulnRadar rates this low severity in the content category. The severity is fixed per check, not scored per site, so the same finding is the same severity on every scan.
Does VulnRadar check for this automatically?
Yes. It runs as part of every scan under the check id version-disclosure, which stays the same between runs so you can filter, diff, or gate CI on it.
Which standards does Server version disclosed in response header map to?
It maps to CWE-200. In the OWASP Top 10 it falls under A05:2021.

Missing a check?

The detection set is open. If you know a misconfiguration this does not catch, propose it: the issue template asks for the threat model, how to detect it, the false-positive risk, and a test fixture, which is the same thing a maintainer would have to work out anyway.

Propose a checkHow a check is built

Scan your own site for server version disclosed in response header

VulnRadar runs this check and hundreds more against a URL in seconds. No agent to install, just paste a URL.

Or scan this site as a demoRead the docs

Server version disclosed in response header fix | VulnRadar