{
  "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-42795",
    "sourceURL": "https://www.cve.org/CVERecord?id=CVE-2026-42795",
    "idYear": 2026,
    "status": "PUBLISHED",
    "publishedAt": "2026-06-02T13:41:39.527Z",
    "updatedAt": "2026-09-08T01:05:20.790Z",
    "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": "Symlink Following in Hex Package Export Allows Embedding Files Outside Project Root",
      "summary": "Symlink following vulnerability in Gleam's Hex package export allows files outside the project root to be embedded in the generated package tarball.\n\nThe file collection helpers (gleam_files, native_files, private_files) in compiler-cli/src/fs.rs use follow_links(true) when walking publishable directories such as src/ and priv/. The collected paths are added to the package archive via add_path_to_tar in compiler-cli/src/publish.rs without verifying that the resolved target remains within the project root. A symlink placed under a publishable directory will cause gleam export hex-tarball or gleam publish to embed the contents of the symlink target into the generated Hex package.\n\nAn attacker with write access to the project repository can place a symlink in src/ or priv/ pointing to an arbitrary file. When a maintainer or CI pipeline runs gleam publish or gleam export hex-tarball, local files readable by the publisher (such as secrets, tokens, or SSH keys) are silently embedded into the published package artifact.\n\nThis issue affects Gleam from 0.10.0-rc1 until 1.17.0.",
      "affected": [
        {
          "vendor": "Gleam",
          "product": "Gleam",
          "packageName": "gleam",
          "defaultStatus": "unaffected",
          "versions": [
            {
              "version": "0.10.0-rc1",
              "status": "affected",
              "versionType": "semver",
              "lessThan": "1.17.0"
            }
          ]
        },
        {
          "vendor": "Gleam",
          "product": "Gleam",
          "packageName": "gleam-lang/gleam",
          "collectionURL": "https://github.com",
          "defaultStatus": "unaffected",
          "versions": [
            {
              "version": "0.10.0-rc1",
              "status": "affected",
              "versionType": "semver",
              "lessThan": "1.17.0"
            },
            {
              "version": "c82a2d83bd0c06cafdc196820deb3f89a9b3ff7c",
              "status": "affected",
              "versionType": "git",
              "lessThan": "6435a5528b9ae0449e2f32be579641ec485f6866"
            }
          ]
        },
        {
          "vendor": "Gleam",
          "product": "Gleam",
          "packageName": "gleam-lang/gleam",
          "collectionURL": "https://ghcr.io",
          "defaultStatus": "unaffected",
          "versions": [
            {
              "version": "v0.10.0-rc1-elixir",
              "status": "affected",
              "versionType": "other",
              "lessThan": "v1.17.0-elixir"
            },
            {
              "version": "v0.10.0-rc1-erlang",
              "status": "affected",
              "versionType": "other",
              "lessThan": "v1.17.0-erlang"
            },
            {
              "version": "v0.10.0-rc1-node",
              "status": "affected",
              "versionType": "other",
              "lessThan": "v1.17.0-node"
            },
            {
              "version": "v0.10.0-rc1-node-slim",
              "status": "affected",
              "versionType": "other",
              "lessThan": "v1.17.0-node-slim"
            },
            {
              "version": "v0.10.0-rc1-elixir-slim",
              "status": "affected",
              "versionType": "other",
              "lessThan": "v1.17.0-elixir-slim"
            },
            {
              "version": "v0.10.0-rc1-erlang-slim",
              "status": "affected",
              "versionType": "other",
              "lessThan": "v1.17.0-erlang-slim"
            },
            {
              "version": "v0.10.0-rc1-erlang-alpine",
              "status": "affected",
              "versionType": "other",
              "lessThan": "v1.17.0-erlang-alpine"
            },
            {
              "version": "v0.10.0-rc1-elixir-alpine",
              "status": "affected",
              "versionType": "other",
              "lessThan": "v1.17.0-elixir-alpine"
            },
            {
              "version": "v0.10.0-rc1-node-alpine",
              "status": "affected",
              "versionType": "other",
              "lessThan": "v1.17.0-node-alpine"
            },
            {
              "version": "v0.10.0-rc1-scratch",
              "status": "affected",
              "versionType": "other",
              "lessThan": "v1.17.0-scratch"
            }
          ]
        }
      ]
    }
  }
}