[GHSA-2rq5-699j-x7p6] Arbitrary local file read vulnerability during template rendering - #9135
Open
Martin-Luther wants to merge 1 commit into
Open
Conversation
github-actions
Bot
changed the base branch from
main
to
Martin-Luther/advisory-improvement-9135
August 16, 2026 11:05
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Updates
Comments
Adding the @rhinostone/swig package family (npm) as affected by CVE-2023-25345.
@rhinostone/swig is a maintained fork of the abandoned swig template engine and inherited the same directory-traversal flaw in the filesystem loader: {% include %}, {% extends %} and {% import %} resolve their target path without confining the result to the configured template root, allowing arbitrary local file read.
All versions up to and including 2.7.0 are affected - @rhinostone/swig and the shared @rhinostone/swig-core loader, hence @rhinostone/swig-twig, @rhinostone/swig-jinja2 and @rhinostone/swig-django as well. Fixed in 2.7.1 (the loader now rejects paths resolving outside basepath). Users should upgrade to 2.7.2 or later: 2.7.1 introduced a regression where a relative basepath wrongly rejected in-root template paths.
Maintainer advisory: GHSA-2mf3-mr2r-r4vf
Fix commit: gina-io/swig@381bdc3
Existing entries for swig and swig-templates are unchanged.