Security Misconfiguration is the category that catches everyone eventually, because it does not require a mistake in your code at all, only a default left unchanged, a permission left too broad, a feature left switched on. In 2021 it rose from sixth to fifth and absorbed the old "XML External Entities" category, reflecting how much modern risk comes from how teams configure what they run, as well as from the code they write.

OWASP has since published a 2025 edition of the Top 10. This article covers the 2021 edition.

Modern applications are assembled from many configurable parts, web servers, application frameworks, databases, cloud services, container platforms, identity providers. Each ships with defaults chosen for ease of setup, not security, and each exposes dozens of settings. Misconfiguration is the aggregate risk of all those knobs being turned the wrong way, or never turned at all.

Where it hides

Security Misconfiguration: Insecure by DefaultDiagram with these labels, in reading order: ATTACKER; APPLICATION; HOST / CONFIG; crafted request; hits raw default; if hardened; Attacker; App + framework; + XML parser; Hardening; Secure baseline; not applied; File read / creds /; stack trace; Insecure defaults; XXE / debug / creds; Insecure-by-default; settings never; hardened.ATTACKERAPPLICATIONHOST / CONFIGcrafted requesthits raw defaultif hardenedAttackercrafted requestApp + framework+ XML parserHardeningSecure baselinenot appliedFile read / creds /stack traceInsecure defaultsXXE / debug / credsInsecure-by-defaultsettings neverhardened
No bug in your code, just a default nobody turned off.
  • Default credentials. Admin consoles, databases, and devices left with the vendor's shipped username and password.
  • Unnecessary features enabled. Sample apps, debug endpoints, admin interfaces, or unused ports exposed to the network.
  • Verbose error messages. Stack traces and internal paths returned to users, handing attackers a map of the system.
  • Missing hardening. Absent security headers, permissive CORS, directory listing enabled, cloud storage buckets left public.
  • Out-of-date configuration. Settings that were reasonable at launch but were never revisited as the platform evolved.

The XXE flaw that joined this category is a textbook example. XML parsers historically arrived with external entity processing enabled by default, a feature almost no application needs, but one that lets an attacker read local files or trigger server-side requests through a crafted document. The root cause was a dangerous parser default that nobody disabled.

An XXE payload against a parser left at its insecure default<?xml version="1.0"?>
<!DOCTYPE r [ <!ENTITY x SYSTEM "file:///etc/passwd"> ]>
<r>&x;</r> # parser reads a local file it should never touch
Why it's so common: Misconfiguration scales with complexity. Every new service, framework, and cloud resource adds settings, and defaults optimize for a working demo, not a hardened deployment. The gap is where attackers live.

Configuring for security

  • Harden from a baseline. Build on a documented secure configuration and apply it consistently across development, staging, and production.
  • Remove what you do not use. Uninstall sample apps, disable unused features and ports, and strip debug endpoints before release.
  • Change every default credential and disable default accounts as part of provisioning.
  • Automate configuration with infrastructure-as-code so environments are identical, reviewable, and reproducible, no hand-tuned snowflakes.
  • Disable dangerous parser features such as XML external entities unless a specific need justifies them.
  • Scan continuously. Configuration drifts; automated checks catch the setting that was quietly changed last week.

Security misconfiguration is uniquely preventable and uniquely persistent, because the same convenience that makes software easy to stand up makes it easy to stand up insecurely. The defense is routine hygiene, and hygiene depends on an accurate inventory of everything you run, because you cannot harden a service you did not know was there.

Primary source. A05:2021 : Security Misconfiguration, OWASP.

Back to the knowledge baseRequest an assessment