{
  "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-103061",
    "sourceURL": "https://www.cve.org/CVERecord?id=CVE-2026-103061",
    "idYear": 2026,
    "status": "PUBLISHED",
    "publishedAt": "2026-10-12T18:23:41.507Z",
    "updatedAt": "2026-10-16T17:49:42.484Z",
    "importedAt": "2026-10-24T01:57:50.502Z",
    "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 via unvalidated package application names",
      "summary": "Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') vulnerability in gleam-lang gleam allows a malicious package publisher to delete a directory outside the project's build directory when a developer builds a project.\n\nA Hex package release's metadata carries an app field with the release's OTP application name. Gleam reads this field from the hex.pm release API when it downloads dependencies and uses it as the package's build directory name without validating it (hex_manifest_package in compiler-cli/src/dependencies.rs, ProjectPaths::build_directory_for_package). When a dependency fails to compile, Gleam deletes that directory with remove_dir_all. hex.pm didn't restrict the field to a directory name before 2026-10-12, so a publisher could set it to a value such as ../../../../target or an absolute path. When a project depends on such a release directly or transitively and the release fails to compile, gleam build, gleam check, gleam run, gleam test or gleam export deletes the directory the name resolves to. For a pure Gleam package no publisher code runs.\n\nThis issue affects gleam: from 0.32.4 before 1.19.2.",
      "affected": [
        {
          "vendor": "Gleam",
          "product": "Gleam",
          "packageName": "gleam",
          "defaultStatus": "unaffected",
          "versions": [
            {
              "version": "0.32.4",
              "status": "affected",
              "versionType": "semver",
              "lessThan": "1.19.2"
            }
          ]
        },
        {
          "vendor": "Gleam",
          "product": "Gleam",
          "packageName": "gleam-lang/gleam",
          "collectionURL": "https://ghcr.io",
          "defaultStatus": "unaffected",
          "versions": [
            {
              "version": "v0.32.4-elixir",
              "status": "affected",
              "versionType": "other",
              "lessThan": "v1.19.2-elixir"
            },
            {
              "version": "v0.32.4-erlang",
              "status": "affected",
              "versionType": "other",
              "lessThan": "v1.19.2-erlang"
            },
            {
              "version": "v0.32.4-node",
              "status": "affected",
              "versionType": "other",
              "lessThan": "v1.19.2-node"
            },
            {
              "version": "v0.32.4-node-slim",
              "status": "affected",
              "versionType": "other",
              "lessThan": "v1.19.2-node-slim"
            },
            {
              "version": "v0.32.4-elixir-slim",
              "status": "affected",
              "versionType": "other",
              "lessThan": "v1.19.2-elixir-slim"
            },
            {
              "version": "v0.32.4-erlang-slim",
              "status": "affected",
              "versionType": "other",
              "lessThan": "v1.19.2-erlang-slim"
            },
            {
              "version": "v0.32.4-erlang-alpine",
              "status": "affected",
              "versionType": "other",
              "lessThan": "v1.19.2-erlang-alpine"
            },
            {
              "version": "v0.32.4-elixir-alpine",
              "status": "affected",
              "versionType": "other",
              "lessThan": "v1.19.2-elixir-alpine"
            },
            {
              "version": "v0.32.4-node-alpine",
              "status": "affected",
              "versionType": "other",
              "lessThan": "v1.19.2-node-alpine"
            },
            {
              "version": "v0.32.4-scratch",
              "status": "affected",
              "versionType": "other",
              "lessThan": "v1.19.2-scratch"
            }
          ]
        },
        {
          "vendor": "Gleam",
          "product": "Gleam",
          "packageName": "gleam-lang/gleam",
          "collectionURL": "https://github.com",
          "defaultStatus": "unaffected",
          "versions": [
            {
              "version": "d13f27ee80aae7a521d2e9433c4deaf53f892574",
              "status": "affected",
              "versionType": "git",
              "lessThan": "*",
              "changes": [
                {
                  "at": "d15c981fac6e533d70ac8ee89a6ef4dbf139adc3",
                  "status": "unaffected"
                },
                {
                  "at": "54bbb2b98af1505b6eed93c45b1936fc76412e5c",
                  "status": "unaffected"
                }
              ]
            }
          ]
        }
      ]
    }
  }
}