Tag

Python Security

All articles tagged with #python security

lxml-html-clean 0.4.7 Fixes XSS Flaw in iframe and SVG Handling
cybersecurity2 hours ago

lxml-html-clean 0.4.7 Fixes XSS Flaw in iframe and SVG Handling

A medium-severity vulnerability in the Python library lxml-html-clean has been patched in version 0.4.7. The flaw allowed attackers to inject JavaScript code via iframe srcdoc attributes and SVG animation elements when the Cleaner class was configured with safe_attrs_only=False. GitHub assigned the CVE-2026-141556 identifier on December 2, 2026, scoring it 4.7 on the CVSS scale. The issue stems from incomplete sanitization of attributes, specifically missing checks for iframe srcdoc and SVG animation parameters like 'to' and 'from', which could execute malicious scripts if a user clicked a link. The fix is available in the latest release, and the project recommends using the nh3 library for security-sensitive environments.

lxml-html-clean 0.4.7 Patch Fixes XSS Flaw in noscript Comment Handling
technology2 hours ago

lxml-html-clean 0.4.7 Patch Fixes XSS Flaw in noscript Comment Handling

A medium-severity cross-site scripting vulnerability in the Python library lxml-html-clean has been patched in version 0.4.7. The flaw allowed attackers to bypass comment removal settings by exploiting differences in how libxml2 and browsers parse noscript elements, enabling script execution without user interaction.

whatstk 0.9.0 Fixes Cleartext Sample Chat Download Flaw
technology5 hours ago

whatstk 0.9.0 Fixes Cleartext Sample Chat Download Flaw

A low-severity vulnerability in the whatstk Python library, identified as CVE-2026-142382, has been resolved in version 0.9.0. The flaw allowed attackers on the network path to substitute sample chat files downloaded over cleartext HTTP. The fix replaces all HTTP URLs with HTTPS in the library's code, documentation, and tests. Users are advised to upgrade to version 0.9.0 or later to mitigate the risk.

Bagpipes Patched for High-Severity Eval Injection Flaw in HDF5 Files
cybersecurity5 hours ago

Bagpipes Patched for High-Severity Eval Injection Flaw in HDF5 Files

A high-severity vulnerability (CVE-2026-142490) in the Bagpipes Python package for astronomical data analysis has been patched. The flaw allowed attackers to execute arbitrary code by supplying a malicious HDF5 file with a crafted 'fit_instructions' attribute, which was passed to Python's eval() function. The issue affects versions up to 1.4.1 and carries a CVSS score of 8.5. A fix has been merged into the repository, replacing unsafe evaluation with safer parsing methods.

xlang-ai OpenAgents Data Agent Faces Code Injection Flaw in python_evaluator.py
security2 days ago

xlang-ai OpenAgents Data Agent Faces Code Injection Flaw in python_evaluator.py

A high-severity code injection vulnerability, CVE-2026-138332, has been identified in the xlang-ai OpenAgents platform. The flaw exists in the run_program_local function within the Data Agent component, allowing remote attackers to inject code without requiring privileges or user interaction. A fix is pending via a pull request that awaits acceptance.

AsyncSSH 2.24.2 Patch Fixes Environment Variable Disclosure in Config Parsing
cybersecurity3 days ago

AsyncSSH 2.24.2 Patch Fixes Environment Variable Disclosure in Config Parsing

A low-severity vulnerability in the Python SSH library AsyncSSH, affecting versions 2.20.0 through 2.24.1, has been patched in version 2.24.2. The flaw allowed attackers to leak process environment variables, such as credentials, by manipulating host or user names in SSH configuration files. The issue stems from improper handling of token expansion in the SSHConfig class, where environment variable references were expanded after token substitution, potentially exposing sensitive data to ProxyCommand arguments.

AsyncSSH 2.24.2 Patches High-Severity Certificate Validation Flaw
cybersecurity3 days ago

AsyncSSH 2.24.2 Patches High-Severity Certificate Validation Flaw

A high-severity vulnerability in the Python AsyncSSH library has been patched in version 2.24.2. The flaw, identified as CVE-2026-138377, allows attackers to bypass authentication by abusing X.509 certificate validation in the known_client_hosts feature. While the CVE record rates the issue as High (7.6), the vendor advisory rates it as Moderate (5.9).

JSONSchema2PoPo2 Patched for High-Severity Code Injection Flaw
cybersecurity5 days ago

JSONSchema2PoPo2 Patched for High-Severity Code Injection Flaw

A high-severity code injection vulnerability, CVE-2026-137999, has been identified in JSONSchema2PoPo2 versions up to 3.0.3. The flaw allows attackers to inject Python code by manipulating JSON Schema default or format values, which are written unescaped into generated templates. A fix has been released to address the issue.

svglib 2.5.0 Patch Fixes High-Severity Denial of Service Flaw in SVG Rendering
technology5 days ago

svglib 2.5.0 Patch Fixes High-Severity Denial of Service Flaw in SVG Rendering

A high-severity denial-of-service vulnerability, CVE-2026-137952, has been identified in the Python library svglib, affecting versions prior to 2.5.0. The flaw allows remote attackers to crash applications by submitting crafted SVG files that trigger uncontrolled recursion in the rendering engine. The issue was fixed in version 2.5.0, released on November 27, 2026, which introduced cycle detection and resource limits to prevent exponential resource consumption.

CVE-2026-137506: Code Injection Flaw in ezdxf dxf2code Add-on Patched in Commit
cybersecurity6 days ago

CVE-2026-137506: Code Injection Flaw in ezdxf dxf2code Add-on Patched in Commit

A high-severity code injection vulnerability (CVE-2026-137506) in the ezdxf Python library affects versions up to 1.4.5. The flaw in the dxf2code add-on allows attackers to inject Python code via unescaped single quotes in DXF table entry names, such as layers or linetypes. A patch has been committed to the repository, but no new release version has been confirmed yet.

Patch Released for High-Severity Path Traversal Flaw in lastversion
security6 days ago

Patch Released for High-Severity Path Traversal Flaw in lastversion

A high-severity vulnerability in the Python package lastversion, affecting versions prior to 3.6.20, has been patched. The flaw allows attackers to write files outside the intended extraction directory via malicious tar archives containing symlink members, potentially leading to remote code execution. The fix, released on November 25, 2026, updates the extraction logic to reject unsafe links and paths.