Join our Newsletter — 33% off our NHI Course
Home› Glossary› Foundations & NHI Taxonomy› AdditionalProperties: False
Foundations & NHI Taxonomy

AdditionalProperties: False

← Back to Glossary
By NHI Mgmt Group Updated November 25, 2026 Domain: Foundations & NHI Taxonomy

additionalProperties: false is a schema constraint that forbids any fields not explicitly listed in an object definition. It is commonly used in JSON Schema and API contracts to make validation strict, so unknown keys are rejected rather than silently accepted.

What AdditionalProperties: False Actually Does in API Schemas

In JSON Schema and OpenAPI-style contracts, additionalProperties: false makes the object definition closed world: only fields that are explicitly declared are accepted. That changes validation from “accept and ignore unknown keys” to “reject anything unexpected,” which is important when schemas define what an API or tool call is allowed to carry.

The practical effect is not just tidier data models. It prevents hidden inputs from slipping through as if they were legitimate parameters, which makes request handling more predictable and reduces the chance that downstream code will interpret an attacker-controlled field.

Why Strict Object Schemas Matter

Strict object schemas are most valuable when the server treats input fields as security-relevant instructions rather than passive data. A closed object definition helps ensure the producer and consumer agree on the exact contract, which is especially important for APIs, generated clients, and automated tool calls.

Without that boundary, unknown keys may be ignored by one layer and used by another, or stored for later use in business logic. That gap is what turns a simple validation choice into a security control, because it reduces ambiguity about which fields are authorised to exist at all.

This is why strict schemas are often paired with explicit allow-lists, response filtering, and server-side validation. The schema becomes part of the contract, not just documentation.

How It Differs From Other Validation Behaviours

additionalProperties: false is about object shape, not value correctness. It does not verify that a declared field is semantically valid, safely ranged, or consistent with business rules; it only says that undeclared keys are forbidden.

That distinction matters because developers sometimes assume strict object shape alone is enough. In practice, you still need type checks, required-field checks, and semantic validation for fields that are allowed to exist. A request can be perfectly “closed” and still be dangerous if an allowed field contains a malicious or contradictory value.

It also differs from a response filter. On inbound data, the schema blocks unexpected properties before processing. On outbound data, separate controls are needed to avoid leaking properties that should never leave the server.

Where It Fits In API and Tooling Contracts

This constraint is common in APIs, contract-first development, and structured output systems because it keeps machine-generated or client-supplied objects from drifting beyond the intended contract. It is especially useful where downstream actions depend on the exact set of fields received.

For that reason, teams often use it alongside explicit request models and tightly defined response DTOs. A strict object schema makes it easier to reason about what a client may submit, what the server may trust, and what must be rejected rather than tolerated.

It is also a useful guardrail when code generation, UI forms, or automated agents produce JSON objects. The schema forces those producers to stay within the defined shape instead of inventing extra keys that happen to look convenient.

Risk and Threat Considerations

Loose object schemas create exposure when hidden or unexpected fields can influence business logic, access decisions, or later processing stages. In API environments, that can contribute to mass assignment, property smuggling, or inconsistent enforcement between validation layers.

Failure mechanism: An attacker submits extra keys that the first validator ignores but a later component accepts, or that are copied into a sensitive object without review.

Impact: The result can be privilege misuse, data corruption, unintended state changes, or exposure of fields that should never be writable by the caller.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP API Security Top 10 addresses the attack and risk surface, while OWASP ASVS, CIS Controls v8 and NIST SP 800-53 Rev 5 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP ASVSV2 — Validation and Business LogicClosed object schemas enforce input validation boundaries for API and request data.
V15 — Secure Coding and ArchitectureStrict schema contracts reduce ambiguity in how data enters application logic and object mapping.
Recommendation — Apply V2 to reject undeclared request fields before business logic processes them. Design request models to accept only explicitly defined properties.
CIS Controls v8CIS-16 — Application Software SecuritySecure application handling of input relies on validating and constraining object structure.
Recommendation — Implement strict server-side input validation for all application entry points.
NIST SP 800-53 Rev 5SI-10 — Information Input ValidationRejecting unexpected object properties is a direct input validation control for structured data.
Recommendation — Validate structured inputs and reject unexpected properties before processing.
OWASP API Security Top 10API3 — Broken Object Property Level AuthorizationClosed schemas help prevent unauthorized writable properties from reaching business logic.
Recommendation — Restrict writable object properties to the exact fields the caller is authorised to set.

Practitioner Guidance

Why practitioners should care: Use strict object schemas when the exact request shape is part of the security boundary, not merely a formatting preference. If your API or contract relies on field-level trust, unknown keys should be rejected early and consistently.

What to watch for: Review whether your server, gateway, and application layer all enforce the same object shape. If one layer allows extra properties and another assumes they cannot exist, the contract is weaker than it looks.

Practitioner takeaway: Treat additionalProperties: false as a contract enforcement control, then pair it with semantic validation for the fields that remain allowed.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on November 25, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org