CVE-2026-45017: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in jg-rp liquid
Python Liquid is a Python engine for the Liquid template language. Prior to 2.2.0, the built-in FileSystemLoader and CachingFileSystemLoader do not guard against reading files outside their search paths when given an absolute path to resolve. This allows malicious template authors to load and render arbitrary files via the {% include %} and {% render %} tags. Targeted files would need to contain valid Liquid markup and be readable by the application process. This vulnerability is fixed in 2.2.0.
AI Analysis
Technical Summary
Python Liquid versions before 2.2.0 have an improper limitation of pathname to a restricted directory (CWE-22) in the FileSystemLoader and CachingFileSystemLoader components. These loaders fail to prevent reading files outside their designated search paths when given absolute paths, enabling attackers to load arbitrary files via the {% include %} and {% render %} tags if the files contain valid Liquid markup and are accessible by the application process. The vulnerability is addressed in version 2.2.0.
Potential Impact
An attacker who can author malicious templates can exploit this vulnerability to read and render arbitrary files on the server that are outside the intended template directories. This could lead to unauthorized disclosure of sensitive information contained in those files. However, the files must contain valid Liquid markup and be readable by the application process for successful exploitation.
Mitigation Recommendations
This vulnerability is fixed in Python Liquid version 2.2.0. Users should upgrade to version 2.2.0 or later to remediate this issue. No official patch or temporary fix is indicated other than upgrading. Patch status is not explicitly confirmed beyond the fix in version 2.2.0; users should verify with the vendor advisory for the latest remediation guidance.
CVE-2026-45017: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in jg-rp liquid
Description
Python Liquid is a Python engine for the Liquid template language. Prior to 2.2.0, the built-in FileSystemLoader and CachingFileSystemLoader do not guard against reading files outside their search paths when given an absolute path to resolve. This allows malicious template authors to load and render arbitrary files via the {% include %} and {% render %} tags. Targeted files would need to contain valid Liquid markup and be readable by the application process. This vulnerability is fixed in 2.2.0.
CVSS v4.0
Score 8.2high
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Python Liquid versions before 2.2.0 have an improper limitation of pathname to a restricted directory (CWE-22) in the FileSystemLoader and CachingFileSystemLoader components. These loaders fail to prevent reading files outside their designated search paths when given absolute paths, enabling attackers to load arbitrary files via the {% include %} and {% render %} tags if the files contain valid Liquid markup and are accessible by the application process. The vulnerability is addressed in version 2.2.0.
Potential Impact
An attacker who can author malicious templates can exploit this vulnerability to read and render arbitrary files on the server that are outside the intended template directories. This could lead to unauthorized disclosure of sensitive information contained in those files. However, the files must contain valid Liquid markup and be readable by the application process for successful exploitation.
Mitigation Recommendations
This vulnerability is fixed in Python Liquid version 2.2.0. Users should upgrade to version 2.2.0 or later to remediate this issue. No official patch or temporary fix is indicated other than upgrading. Patch status is not explicitly confirmed beyond the fix in version 2.2.0; users should verify with the vendor advisory for the latest remediation guidance.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-05-08T16:58:28.895Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a186052e29bf47b500b421f
Added to database: 5/28/2026, 3:33:38 PM
Last enriched: 5/28/2026, 3:48:35 PM
Last updated: 5/29/2026, 8:21:24 AM
Views: 7
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.