Lookup for vulnerabilities affecting packages.

GET /api/vulnerabilities/77491?format=api
HTTP 200 OK
Allow: GET, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "url": "http://public2.vulnerablecode.io/api/vulnerabilities/77491?format=api",
    "vulnerability_id": "VCID-r4jr-ft8s-9qcq",
    "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.",
    "aliases": [
        {
            "alias": "CVE-2026-32685"
        }
    ],
    "fixed_packages": [],
    "affected_packages": [],
    "references": [
        {
            "reference_url": "https://api.first.org/data/v1/epss?cve=CVE-2026-32685",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "0.00019",
                    "scoring_system": "epss",
                    "scoring_elements": "0.05222",
                    "published_at": "2026-06-12T12:55:00Z"
                },
                {
                    "value": "0.00019",
                    "scoring_system": "epss",
                    "scoring_elements": "0.05202",
                    "published_at": "2026-06-14T12:55:00Z"
                },
                {
                    "value": "0.00019",
                    "scoring_system": "epss",
                    "scoring_elements": "0.0521",
                    "published_at": "2026-06-11T12:55:00Z"
                },
                {
                    "value": "0.00019",
                    "scoring_system": "epss",
                    "scoring_elements": "0.05215",
                    "published_at": "2026-06-13T12:55:00Z"
                }
            ],
            "url": "https://api.first.org/data/v1/epss?cve=CVE-2026-32685"
        },
        {
            "reference_url": "https://github.com/gleam-lang/gleam/commit/81570611906b6b0039c948037094d09a68700f3a",
            "reference_id": "81570611906b6b0039c948037094d09a68700f3a",
            "reference_type": "",
            "scores": [
                {
                    "value": "4.6",
                    "scoring_system": "cvssv4",
                    "scoring_elements": "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N"
                },
                {
                    "value": "Track",
                    "scoring_system": "ssvc",
                    "scoring_elements": "SSVCv2/E:P/A:N/T:P/P:M/B:A/M:M/D:T/2026-06-02T15:06:11Z/"
                }
            ],
            "url": "https://github.com/gleam-lang/gleam/commit/81570611906b6b0039c948037094d09a68700f3a"
        },
        {
            "reference_url": "https://github.com/gleam-lang/gleam/commit/c9230cd3045de8fd8481dae3a4557c0146df1430",
            "reference_id": "c9230cd3045de8fd8481dae3a4557c0146df1430",
            "reference_type": "",
            "scores": [
                {
                    "value": "4.6",
                    "scoring_system": "cvssv4",
                    "scoring_elements": "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N"
                },
                {
                    "value": "Track",
                    "scoring_system": "ssvc",
                    "scoring_elements": "SSVCv2/E:P/A:N/T:P/P:M/B:A/M:M/D:T/2026-06-02T15:06:11Z/"
                }
            ],
            "url": "https://github.com/gleam-lang/gleam/commit/c9230cd3045de8fd8481dae3a4557c0146df1430"
        },
        {
            "reference_url": "https://nvd.nist.gov/vuln/search/results?adv_search=true&isCpeNameSearch=true&query=cpe:2.3:a:gleam-lang:gleam:*:*:*:*:*:*:*:*",
            "reference_id": "cpe:2.3:a:gleam-lang:gleam:*:*:*:*:*:*:*:*",
            "reference_type": "",
            "scores": [],
            "url": "https://nvd.nist.gov/vuln/search/results?adv_search=true&isCpeNameSearch=true&query=cpe:2.3:a:gleam-lang:gleam:*:*:*:*:*:*:*:*"
        },
        {
            "reference_url": "https://cna.erlef.org/cves/CVE-2026-32685.html",
            "reference_id": "CVE-2026-32685.html",
            "reference_type": "",
            "scores": [
                {
                    "value": "4.6",
                    "scoring_system": "cvssv4",
                    "scoring_elements": "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N"
                },
                {
                    "value": "Track",
                    "scoring_system": "ssvc",
                    "scoring_elements": "SSVCv2/E:P/A:N/T:P/P:M/B:A/M:M/D:T/2026-06-02T15:06:11Z/"
                }
            ],
            "url": "https://cna.erlef.org/cves/CVE-2026-32685.html"
        },
        {
            "reference_url": "https://osv.dev/vulnerability/EEF-CVE-2026-32685",
            "reference_id": "EEF-CVE-2026-32685",
            "reference_type": "",
            "scores": [
                {
                    "value": "4.6",
                    "scoring_system": "cvssv4",
                    "scoring_elements": "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N"
                },
                {
                    "value": "Track",
                    "scoring_system": "ssvc",
                    "scoring_elements": "SSVCv2/E:P/A:N/T:P/P:M/B:A/M:M/D:T/2026-06-02T15:06:11Z/"
                }
            ],
            "url": "https://osv.dev/vulnerability/EEF-CVE-2026-32685"
        },
        {
            "reference_url": "https://github.com/gleam-lang/gleam/security/advisories/GHSA-wjx8-7w8m-p4v7",
            "reference_id": "GHSA-wjx8-7w8m-p4v7",
            "reference_type": "",
            "scores": [
                {
                    "value": "4.6",
                    "scoring_system": "cvssv4",
                    "scoring_elements": "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N"
                },
                {
                    "value": "Track",
                    "scoring_system": "ssvc",
                    "scoring_elements": "SSVCv2/E:P/A:N/T:P/P:M/B:A/M:M/D:T/2026-06-02T15:06:11Z/"
                }
            ],
            "url": "https://github.com/gleam-lang/gleam/security/advisories/GHSA-wjx8-7w8m-p4v7"
        }
    ],
    "weaknesses": [
        {
            "cwe_id": 22,
            "name": "Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')",
            "description": "The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory."
        }
    ],
    "exploits": [],
    "severity_range_score": "4.6 - 4.6",
    "exploitability": null,
    "weighted_severity": null,
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-r4jr-ft8s-9qcq"
}