Skip to content

ansible_lint-5.4.0-py3-none-any.whl: 2 vulnerabilities (highest severity is: 5.5) #20

Description

@mend-bolt-for-github
Vulnerable Library - ansible_lint-5.4.0-py3-none-any.whl

Sample Path to Dependency File: /requirements.txt

Path to vulnerable library: /requirements.txt

Vulnerabilities

Vulnerability Severity CVSS Dependency Type Fixed in (ansible_lint version) Remediation Possible**
CVE-2022-40896 Medium 5.5 Pygments-2.11.2-py3-none-any.whl Transitive 6.0.0
CVE-2026-4539 Low 3.3 Pygments-2.11.2-py3-none-any.whl Transitive N/A*

*For some transitive vulnerabilities, there is no version of direct dependency with a fix. Check the "Details" section below to see if there is a version of transitive dependency where vulnerability is fixed.

**In some cases, Remediation PR cannot be created automatically for a vulnerability despite the availability of remediation

Details

CVE-2022-40896

Vulnerable Library - Pygments-2.11.2-py3-none-any.whl

Pygments is a syntax highlighting package written in Python.

Library home page: https://files.pythonhosted.org/packages/1d/17/ed4d2df187995561b28f1073df24137cb750e12f9879d291cc8ab67c65d2/Pygments-2.11.2-py3-none-any.whl

Sample Path to Dependency File: /requirements.txt

Path to vulnerable library: /requirements.txt

Dependency Hierarchy:

  • ansible_lint-5.4.0-py3-none-any.whl (Root Library)
    • enrich-1.2.7-py3-none-any.whl
      • rich-11.2.0-py3-none-any.whl
        • Pygments-2.11.2-py3-none-any.whl (Vulnerable Library)

Found in base branch: main

Vulnerability Details

A ReDoS issue was discovered in pygments/lexers/smithy.py in pygments through 2.15.0 via SmithyLexer.

Publish Date: 2023-07-19

URL: CVE-2022-40896

CVSS 3 Score Details (5.5)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Local
    • Attack Complexity: Low
    • Privileges Required: None
    • User Interaction: Required
    • Scope: Unchanged
  • Impact Metrics:
    • Confidentiality Impact: None
    • Integrity Impact: None
    • Availability Impact: High

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: https://pyup.io/vulnerabilities/CVE-2022-40896/58910/

Release Date: 2023-07-19

Fix Resolution (Pygments): 2.15.0

Direct dependency fix Resolution (ansible-lint): 6.0.0

Step up your Open Source Security Game with Mend here

CVE-2026-4539

Vulnerable Library - Pygments-2.11.2-py3-none-any.whl

Pygments is a syntax highlighting package written in Python.

Library home page: https://files.pythonhosted.org/packages/1d/17/ed4d2df187995561b28f1073df24137cb750e12f9879d291cc8ab67c65d2/Pygments-2.11.2-py3-none-any.whl

Sample Path to Dependency File: /requirements.txt

Path to vulnerable library: /requirements.txt

Dependency Hierarchy:

  • ansible_lint-5.4.0-py3-none-any.whl (Root Library)
    • enrich-1.2.7-py3-none-any.whl
      • rich-11.2.0-py3-none-any.whl
        • Pygments-2.11.2-py3-none-any.whl (Vulnerable Library)

Found in base branch: main

Vulnerability Details

A security flaw has been discovered in pygments up to 2.19.2. The impacted element is the function AdlLexer of the file pygments/lexers/archetype.py. The manipulation results in inefficient regular expression complexity. The attack is only possible with local access. The exploit has been released to the public and may be used for attacks. The project was informed of the problem early through an issue report but has not responded yet.

Publish Date: 2026-03-22

URL: CVE-2026-4539

CVSS 3 Score Details (3.3)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Local
    • Attack Complexity: Low
    • Privileges Required: Low
    • User Interaction: None
    • Scope: Unchanged
  • Impact Metrics:
    • Confidentiality Impact: None
    • Integrity Impact: None
    • Availability Impact: Low

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: GHSA-5239-wwwm-4pmq

Release Date: 2026-03-22

Fix Resolution: pygments - 2.20.0,pygments - 2.20.0

Step up your Open Source Security Game with Mend here

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions