Cluster 9 · OpenAPI 3.0/3.1 · OWASP API Top 10 · AI/MCP Token Optimization

OpenAPI OWASP API Top 10 & MCP Tool-Schema Readiness Scorer

Quick-lint OpenAPI 2.0/3.0/3.1 JSON or YAML specs locally, score 0–100 across OWASP API1–API9 and MCP pre-prompt token budgets, and generate copy-paste OpenAPI YAML security patches + Markdown PR checklists with zero uploads.

Zero Telemetry · Strict CSP (connect-src 'none')

1. Paste OpenAPI Spec (Quick-Lint) & Controls

OAS 2.0 / 3.0 / 3.1 · OWASP API Top 10
Parsed JSON OpenAPI 3.0.1 · 2 ops · 1 {id} routes · 1 nullable: true · ~522 tok
OWASP API Top 10 & MCP Readiness Checklist (100 Points)
High OWASP Top 10 & Bloat Risk
0 / 100 (F)
BLOCKED — CRITICAL OWASP RISKS

Passing: 0 · Fixes Needed: 8 · Target: OpenAPI 3.1.0

Est. MCP Schema Tokens
2,664 tok
$11.99/mo at 50 turns/day ($3/1M)
Reclaimable Diet Savings
-1,284 tok
Saves $5.78/mo via MCPDiet
API2-AUTH (OWASP API2:2023): Explicit components.securitySchemes (Bearer JWT / OAuth2 scopes) + global/op security CRITICAL FIX
Missing components.securitySchemes or global security[] lets unauthenticated callers probe private routes (OWASP API2).
API1-BOLA (OWASP API1:2023): Object-ID routes ({id}) enforce explicit 401/403 responses & tenant ownership scopes CRITICAL FIX
Object-ID routes ({id}) lack explicit 401/403 security contracts and ownership scope checks (OWASP API1 BOLA — #1 API breach vector).
API3-BOPLA (OWASP API3:2023): additionalProperties: false + readOnly: true on server-owned fields (role, id, plan) CRITICAL FIX
Unbounded object schemas allow attackers to inject role, plan, or tenantId fields (OWASP API3 Mass Assignment / BOPLA).
API4-BOUNDS (OWASP API4:2023): maxLength, maxItems, maximum & bounded pagination (limit <= 100 / cursor) on inputs CRITICAL FIX
Unbounded arrays/strings and uncapped ?limit= queries expose memory/CPU DoS vectors (OWASP API4).
API8-TLS (OWASP API8:2023): HTTPS-only servers[] URLs (zero http:// prod) + strict CORS allowlist & headers HIGH FIX
Cleartext http:// server URLs or wildcard CORS with credentials expose tokens and cross-origin data (OWASP API8).
API4-429 (OWASP API4 / API8): Explicit 401, 403 & 429 Too Many Requests responses with Retry-After / X-RateLimit-* HIGH FIX
Missing 429 rate-limit contracts and Retry-After headers leave brute-force and scraping throttles undocumented.
API9-INV (OWASP API9:2023): Versioned base paths + deprecated: true ops declare Sunset header & replacement path HIGH FIX
Missing API versioning, shadow routes, or deprecated operations without Sunset headers (OWASP API9 Improper Inventory).
MCP-TOKEN (AI / MCP Readiness): Concise tool descriptions (<= 120 tok/op) & OpenAPI 3.1 type arrays (no nullable: true) HIGH FIX
Verbose descriptions (~92 tok/op) and legacy nullable: true add ~1,284 wasted MCP pre-prompt tokens.
openapi-owasp-remediation.yaml
openapi: "3.1.0"
info:
  title: "Acme Billing & Workspace API"
  version: "1.0.0"
servers:
  - url: https://api.example.com/v1
    description: Enforce TLS 1.2+ only (never http:// in production)
components:
  securitySchemes:
    bearerJwt:
      type: http
      scheme: bearer
      bearerFormat: JWT
    oauth2Auth:
      type: oauth2
      flows:
        authorizationCode:
          authorizationUrl: https://auth.example.com/authorize
          tokenUrl: https://auth.example.com/oauth/token
          scopes:
            items:read: Read tenant-scoped resources
            items:write: Mutate tenant-scoped resources
security:
  - bearerJwt: []
  schemas:
    WorkspaceMemberCreateRequest:
      type: object
      additionalProperties: false
      required:
        - email
      properties:
        id:
          type: string
          format: uuid
          readOnly: true
        role:
          type: string
          readOnly: true
        email:
          type: string
          format: email
          maxLength: 254
        tags:
          type: array
          maxItems: 20
          items:
            type: string
            maxLength: 32
        nickname:
          type:
            - string
            - "null"
          maxLength: 64
  responses:
    Unauthorized401:
      description: Missing or invalid Bearer JWT / OAuth2 token
    Forbidden403:
      description: Authenticated caller lacks tenant/object ownership scope
    TooManyRequests429:
      description: Rate limit exceeded
      headers:
        Retry-After:
          schema:
            type: integer
            minimum: 1
            maximum: 3600
        X-RateLimit-Remaining:
          schema:
            type: integer
            minimum: 0
paths:
  /v1/workspaces/{workspaceId}/members:
    get:
      operationId: listWorkspaceMembers
      description: List members for a tenant workspace.
      parameters:
        - name: workspaceId
          in: path
          required: true
          schema:
            type: string
            format: uuid
            maxLength: 36
        - name: limit
          in: query
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 25
      responses:
        "200":
          description: Bounded member page
        "401":
          $ref: "#/components/responses/Unauthorized401"
        "403":
          $ref: "#/components/responses/Forbidden403"
        "429":
          $ref: "#/components/responses/TooManyRequests429"
  /v0/members:
    get:
      deprecated: true
      description: Deprecated; migrate to /v1/workspaces/{workspaceId}/members.
      responses:
        "200":
          description: Legacy response
          headers:
            Sunset:
              schema:
                type: string
                format: date-time
Zero-Upload SpecDiff $49 Remediation PR

Audit Full OpenAPI Specs or Ship a Hardened PR Today

Run a 100% browser-side breaking-change diff, OWASP API Top 10 scan & SARIF 2.1.0 export on SpecDiff (https://spec.runglab.dev), order a $49 Done-For-You OpenAPI & MCP Remediation PR on Creem, or automate via POST /v1/openapi/audit (API Hub), remote MCP tool audit_openapi_spec, and Apify Cloud PPE.

10 OpenAPI Security, OWASP API Top 10 & MCP Optimization Guides

Deep-dive remediation patterns for BOLA, broken auth, mass assignment, DoS bounds, OpenAPI 3.1 nullable migration, MCP token diet, and SARIF CI gates.

Cross-cluster resources: 2026 B2B OpenAPI Security & MCP Benchmark (N=26) → · Cluster 3: MCP Context Token Cost Calculator → · Cluster 7B: CORS Preflight & Webhook HMAC Debugger → · HTTP Security Headers & Strict CSP → · A2A & MCP Discovery Validator → · 100-Server Live MCP Context Study →

Frequently Asked Questions

How does this OpenAPI OWASP API Top 10 & MCP Readiness Scorer work without uploading my spec?

Both the JSON/YAML quick-lint parser and the 100-point OWASP + MCP scorer run 100% locally in your browser under strict Content-Security-Policy connect-src 'none'. Zero specs or endpoints are ever sent to any server.

Which OWASP API Security Top 10 risks can be audited directly from an OpenAPI specification?

An OpenAPI 3.0/3.1 contract directly surfaces API1 (missing auth/401/403 on {id} routes), API2 (missing securitySchemes/OAuth scopes), API3 (missing additionalProperties: false & readOnly fields), API4 (missing maxItems/maxLength/maximum/429), API8 (cleartext http:// servers), and API9 (deprecated ops lacking Sunset headers).

How does RungLab help if I want automated CI SARIF or a Done-For-You remediation PR?

Run free full semantic diffs & SARIF 2.1.0 exports at https://spec.runglab.dev, call POST /v1/openapi/audit (hub.runglab.dev) or audit_openapi_spec (mcp-server.runglab.dev/), run our Apify PPE Actor, or order the $49 Done-For-You OpenAPI & MCP Remediation PR on Creem.