{"answers":{"affected":"4 open source packages ship an affected version, including go.rgst.io/stencil/v2 and go.rgst.io/stencil.","exploited":"There is no known exploitation of GHSA-p799-q2pr-6mxj in the wild and no public exploit code.","fix":"Upgrade go.rgst.io/stencil/v2 to 2.3.0 or later.","what":"GHSA-p799-q2pr-6mxj is a path traversal vulnerability in go.rgst.io/stencil, published on 29 Mar 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for GHSA-p799-q2pr-6mxj and fix it if it is affected.\n\nWhat it is: GHSA-p799-q2pr-6mxj is a path traversal vulnerability in go.rgst.io/stencil, published on 29 Mar 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of GHSA-p799-q2pr-6mxj in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- go.rgst.io/stencil/v2 (Go): affected all versions; fixed in 2.3.0\n- go.rgst.io/stencil/v2 (Go): affected all versions; fixed in 2.3.0\n- go.rgst.io/stencil/v2 (Go): affected all versions; fixed in 2.3.0\n- go.rgst.io/stencil (Go): affected all versions; no fix listed\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/GHSA-p799-q2pr-6mxj/ (Markdown: https://insights.sbomify.com/GHSA-p799-q2pr-6mxj/index.md)","id":"GHSA-p799-q2pr-6mxj","markdown":"https://insights.sbomify.com/GHSA-p799-q2pr-6mxj/index.md","name":"GHSA-p799-q2pr-6mxj","record":{"aliases":["GO-2025-3584"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution","data_read","data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"Go stencil library","requires_auth":"none","summary":"A path traversal vulnerability in the stencil library allows attackers to execute code or modify files via malicious archives.","user_interaction":"required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"### Impact\n\nThe library used to extract archives (github.com/jaredallard/archives) was vulnerable to the \"zip slip\" vulnerability. This is used to extract native extension archives and repository source archives. A native extension or repository archive could be crafted in such a way where a remote code execution or modification/reading of a file is possible using the user who is running stencil.\n\nThe severity is marked as \"medium\" because native extensions have always considered to be \"unsafe\" to run when not trusted. Native extensions are arbitrary code being ran, which could always do this same exploit with less steps. The medium severity is to reflect that this could be done even when a user is _not_ using a native extension, for example a repository source archive. However, one would need to mutate the archives provided by Github or perform some hackery with links, which may not be possible. Thus, \"medium\" is used out of an abundance of caution where I would've labeled this as \"low\".\n\n### Patches\n\nPatched in 2.3.0 and above.\n\n### Workarounds\n\nNo workarounds are present.\n\n### References\n\nhttps://github.com/jaredallard/archives/security/advisories/GHSA-j95m-rcjp-q69h","ecosystems":["Go"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"go.rgst.io/stencil/v2 vulnerable to Path Traversal","id":"GHSA-p799-q2pr-6mxj","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"Go","product":null,"products":[],"type":"path_traversal","year":"2025"},"n_packages":4,"n_references":null,"packages":[{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"go.rgst.io/stencil","purl":"pkg:golang/go.rgst.io/stencil","source":"GO-2025-3584"},{"ecosystem":"Go","fixed":["2.3.0"],"introduced":["0"],"last_affected":[],"package":"go.rgst.io/stencil/v2","purl":null,"source":"GHSA-p799-q2pr-6mxj"},{"ecosystem":"Go","fixed":["2.3.0"],"introduced":["0"],"last_affected":[],"package":"go.rgst.io/stencil/v2","purl":"pkg:golang/go.rgst.io/stencil/v2","source":"GHSA-p799-q2pr-6mxj"},{"ecosystem":"Go","fixed":["2.3.0"],"introduced":["0"],"last_affected":[],"package":"go.rgst.io/stencil/v2","purl":"pkg:golang/go.rgst.io/stencil/v2","source":"GO-2025-3584"}],"products":null,"published":"2025-03-29","related":[],"sources":[{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"A path traversal vulnerability in the stencil library allows attackers to execute code or modify files via malicious archives.","url":"https://insights.sbomify.com/GHSA-p799-q2pr-6mxj/"}