All reports
High

rswag vulnerable to arbitrary JSON and YAML file read via directory traversal

Affected versions

RubyGemsrswag
Affected versions
< 2.10.1
Fixed version
2.10.1

Exploitation

CVE-2023-38337

Probability of exploitation in the next 30 days: 1.27%

FIRST EPSS · 2026-11-22

Description

rswag before 2.10.1 allows remote attackers to read arbitrary JSON and YAML files via directory traversal, because rswag-api can expose a file that is not the OpenAPI (or Swagger) specification file of a project.

Links