{
  "schemaVersion": 1,
  "attribution": [
    {
      "source": "CISA Known Exploited Vulnerabilities",
      "url": "https://www.cisa.gov/known-exploited-vulnerabilities-catalog",
      "licence": "US government work"
    },
    {
      "source": "GitHub Advisory Database",
      "url": "https://github.com/advisories",
      "licence": "CC BY 4.0"
    },
    {
      "source": "Have I Been Pwned",
      "url": "https://haveibeenpwned.com/",
      "licence": "CC BY 4.0"
    },
    {
      "source": "CVE Program (CVE records)",
      "url": "https://www.cve.org/Legal/TermsOfUse",
      "licence": "CVE Terms of Use",
      "notice": "Copyright © 1999-2026, The MITRE Corporation. CVE is a trademark and the CVE logo is a registered trademark of The MITRE Corporation.",
      "terms": "CVE Usage: MITRE hereby grants you a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute Common Vulnerabilities and Exposures (CVE™). Any copy you make for such purposes is authorized provided that you reproduce MITRE's copyright designation and this license in any such copy."
    },
    {
      "source": "FIRST EPSS",
      "url": "https://www.first.org/epss/",
      "licence": "free to use; FIRST requests attribution"
    }
  ],
  "record": {
    "id": "CVE-2026-32685",
    "sourceURL": "https://www.cve.org/CVERecord?id=CVE-2026-32685",
    "idYear": 2026,
    "status": "PUBLISHED",
    "publishedAt": "2026-06-02T13:41:37.885Z",
    "updatedAt": "2026-09-08T01:05:06.166Z",
    "importedAt": "2026-10-24T01:58:08.712Z",
    "snapshot": {
      "id": "cve_2026-10-24_midnight_baseline",
      "at": "2026-10-24T00:00:00.000Z",
      "source": "https://github.com/CVEProject/cvelistV5/releases/tag/cve_2026-10-24_0100Z"
    },
    "facts": {
      "title": "Path Traversal in gleam docs build via documentation.pages Allows Arbitrary File Read and Write",
      "summary": "Path traversal vulnerability in Gleam's handling of custom documentation pages allows arbitrary file read and file write outside the intended documentation output directory.\n\nThe documentation.pages entries from gleam.toml are incorporated into filesystem paths without sufficient validation or confinement to the intended project and documentation output directories. The documentation.pages[].path field can be used to write generated documentation files outside the intended build/dev/docs/<package>/ output directory. The documentation.pages[].source field can be used to read files outside the project directory and embed their contents into generated documentation output.\n\nAn attacker who can convince a victim to run gleam docs build on an untrusted project, or with untrusted gleam.toml content, can cause local files readable by the victim to be included in generated documentation artifacts, and can cause generated documentation files to be written outside the intended docs output directory.\n\nThis issue affects Gleam from 1.16.0 until 1.17.0.",
      "affected": [
        {
          "vendor": "Gleam",
          "product": "Gleam",
          "packageName": "gleam",
          "defaultStatus": "unaffected",
          "versions": [
            {
              "version": "1.16.0",
              "status": "affected",
              "versionType": "semver",
              "lessThan": "1.17.0"
            }
          ]
        },
        {
          "vendor": "Gleam",
          "product": "Gleam",
          "packageName": "gleam-lang/gleam",
          "collectionURL": "https://github.com",
          "defaultStatus": "unaffected",
          "versions": [
            {
              "version": "1.16.0",
              "status": "affected",
              "versionType": "semver",
              "lessThan": "1.17.0"
            },
            {
              "version": "61ed8deb6572b5591ad17d6302c1a38607522f16",
              "status": "affected",
              "versionType": "git",
              "lessThan": "81570611906b6b0039c948037094d09a68700f3a"
            }
          ]
        },
        {
          "vendor": "Gleam",
          "product": "Gleam",
          "packageName": "gleam-lang/gleam",
          "collectionURL": "https://ghcr.io",
          "defaultStatus": "unaffected",
          "versions": [
            {
              "version": "v1.16.0-elixir",
              "status": "affected",
              "versionType": "other",
              "lessThan": "v1.17.0-elixir"
            },
            {
              "version": "v1.16.0-erlang",
              "status": "affected",
              "versionType": "other",
              "lessThan": "v1.17.0-erlang"
            },
            {
              "version": "v1.16.0-node",
              "status": "affected",
              "versionType": "other",
              "lessThan": "v1.17.0-node"
            },
            {
              "version": "v1.16.0-node-slim",
              "status": "affected",
              "versionType": "other",
              "lessThan": "v1.17.0-node-slim"
            },
            {
              "version": "v1.16.0-elixir-slim",
              "status": "affected",
              "versionType": "other",
              "lessThan": "v1.17.0-elixir-slim"
            },
            {
              "version": "v1.16.0-erlang-slim",
              "status": "affected",
              "versionType": "other",
              "lessThan": "v1.17.0-erlang-slim"
            },
            {
              "version": "v1.16.0-erlang-alpine",
              "status": "affected",
              "versionType": "other",
              "lessThan": "v1.17.0-erlang-alpine"
            },
            {
              "version": "v1.16.0-elixir-alpine",
              "status": "affected",
              "versionType": "other",
              "lessThan": "v1.17.0-elixir-alpine"
            },
            {
              "version": "v1.16.0-node-alpine",
              "status": "affected",
              "versionType": "other",
              "lessThan": "v1.17.0-node-alpine"
            },
            {
              "version": "v1.16.0-scratch",
              "status": "affected",
              "versionType": "other",
              "lessThan": "v1.17.0-scratch"
            }
          ]
        }
      ]
    }
  }
}