Skip to content

[GHSA-2rq5-699j-x7p6] Arbitrary local file read vulnerability during template rendering - #9135

Open
Martin-Luther wants to merge 1 commit into
Martin-Luther/advisory-improvement-9135from
Martin-Luther-GHSA-2rq5-699j-x7p6
Open

[GHSA-2rq5-699j-x7p6] Arbitrary local file read vulnerability during template rendering #9135
Martin-Luther wants to merge 1 commit into
Martin-Luther/advisory-improvement-9135from
Martin-Luther-GHSA-2rq5-699j-x7p6

Conversation

@Martin-Luther

Copy link
Copy Markdown

Updates

  • Affected products

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.

@github-actions
github-actions Bot changed the base branch from main to Martin-Luther/advisory-improvement-9135 August 16, 2026 11:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant