<?xml version="1.0" encoding="utf-8"?>
  <?xml-stylesheet type="text/xsl" href="sa-render.xsl"?>
  <update from="huaweicloud.com" type="security" status="stable" version="1">
    <id>HCE2-SA-2025-0200</id>
    <title>An update for python-jinja2 is now available for HCE 2.0</title>
    <severity>Important</severity>
    <release>HCE 2.0</release>
    <issued date="2025-06-25 17:09:25"/>
    <updated date="2025-06-25 17:09:25"/>
    <references>
      <reference href="https://nvd.nist.gov/vuln/detail/CVE-2025-27516" id="CVE-2025-27516" title="CVE-2025-27516 Base Score: 7.3 Vector: CVSS:3.0/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H" type="cve"/>
    </references>
    <description>Security Fix(es):

Jinja is an extensible templating engine. Prior to 3.1.6, an oversight in how the Jinja sandboxed environment interacts with the |attr filter allows an attacker that controls the content of a template to execute arbitrary Python code. To exploit the vulnerability, an attacker needs to control the content of a template. Whether that is the case depends on the type of application using Jinja. This vulnerability impacts users of applications which execute untrusted templates. Jinja_x27;s sandbox does catch calls to str.format and ensures they don_x27;t escape the sandbox. However, it_x27;s possible to use the |attr filter to get a reference to a string_x27;s plain format method, bypassing the sandbox. After the fix, the |attr filter no longer bypasses the environment_x27;s attribute lookup. This vulnerability is fixed in 3.1.6. (CVE-2025-27516)
</description>
    <pkglist>
      <collection short="HCE 2.0" package="python-jinja2">
        <name>HCE 2.0</name>
        <package arch="noarch" name="python3-jinja2" version="3.0.3" release="1.r6.hce2">
          <filename>python3-jinja2-3.0.3-1.r6.hce2.noarch.rpm</filename>
        </package>
        <package arch="noarch" name="python-jinja2-help" version="3.0.3" release="1.r6.hce2">
          <filename>python-jinja2-help-3.0.3-1.r6.hce2.noarch.rpm</filename>
        </package>
      </collection>
    </pkglist>
  </update>
