CVE-2022-4396
Python vulnerability analysis and mitigation

Overview

A vulnerability (CVE-2022-4396) was discovered in RDFlib pyrdfa3, affecting the _get_option function in the pyRdfa/init.py file. The vulnerability was classified as a Cross-Site Scripting (XSS) issue and was disclosed in December 2022 (NVD, Ubuntu).

Technical details

The vulnerability is classified as CWE-79 (Cross-site Scripting) and affects the function _get_option in pyRdfa/init.py. The issue stems from improper validation of output formats and user input, which could lead to XSS attacks (GitHub Commit).

Impact

The vulnerability could allow attackers to conduct cross-site scripting attacks through manipulation of input parameters. This could potentially lead to unauthorized script execution in the context of the affected application (NVD).

Mitigation and workarounds

A fix was implemented by adding validation for output formats and implementing the _validate_output_format function to restrict output format options to safe values including 'turtle', 'n3', 'xml', 'pretty-xml', 'nt', and 'json-ld'. The fix also includes proper escaping of user input using cgi.escape (GitHub Commit).

Additional resources


SourceThis report was generated using AI

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-66423HIGH7.1
  • PythonPython
  • tryton-server
NoYesNov 30, 2025
CVE-2025-66454MEDIUM6.5
  • PythonPython
  • arcade-mcp-server
NoYesDec 02, 2025
CVE-2025-66424MEDIUM6.5
  • PythonPython
  • trytond
NoYesNov 30, 2025
CVE-2025-66422MEDIUM4.3
  • PythonPython
  • tryton-server
NoYesNov 30, 2025
CVE-2025-65858LOW3.5
  • PythonPython
  • calibreweb
NoNoDec 02, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management