{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "versions": [
              {
                "introduced": "0"
              },
              {
                "fixed": "2.10.1"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "5b34ec9bed830336b227983fa5bfd06f86266c6d"
            }
          ],
          "repo": "https://github.com/rswag/rswag",
          "type": "GIT"
        }
      ]
    }
  ],
  "details": "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.",
  "id": "CVE-2023-38337",
  "modified": "2026-03-13T21:48:32.186264285Z",
  "published": "2023-07-14T22:15:09.430Z",
  "references": [
    {
      "type": "FIX",
      "url": "https://github.com/rswag/rswag/compare/2.9.0...2.10.1"
    },
    {
      "type": "FIX",
      "url": "https://github.com/rswag/rswag/issues/653"
    }
  ],
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N",
      "type": "CVSS_V3"
    }
  ]
}