swagger-api / swagger-api/swagger-codegen

CVE-2022-25844 (High) detected in angular-1.7.5.tgz

Open
#11,796 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

security vulnerability
Dominant language
Mustache
Stars
17.8k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

CVE-2022-25844 - High Severity Vulnerability

Vulnerable Library - angular-1.7.5.tgz

HTML enhanced for web apps

Library home page: https://registry.npmjs.org/angular/-/angular-1.7.5.tgz

Path to dependency file: /samples/client/petstore/typescript-angularjs/package.json

Path to vulnerable library: /samples/client/petstore/typescript-angularjs/node_modules/angular/package.json

Dependency Hierarchy:

  • angular-1.7.5.tgz (Vulnerable Library)

Found in HEAD commit: 4b7a8d7d7384aa6a27d6309c35ade0916edae7ed

Found in base branch: master

Vulnerability Details

The package angular after 1.7.0 are vulnerable to Regular Expression Denial of Service (ReDoS) by providing a custom locale rule that makes it possible to assign the parameter in posPre: ' '.repeat() of NUMBER_FORMATS.PATTERNS[1].posPre with a very high value. Note: 1) This package has been deprecated and is no longer maintained. 2) The vulnerable versions are 1.7.0 and higher.

Publish Date: 2022-05-01

URL: CVE-2022-25844

CVSS 3 Score Details (7.5)

Base Score Metrics:

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

For more information on CVSS3 Scores, click here.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with samples/client/petstore/typescript-angularjs/package.json and inspect how the angular dependency is used in that sample. Determine whether the vulnerable dependency can be removed or replaced, then verify that the sample no longer installs angular 1.7.5 or another affected version and still works as intended.

Written by the indexing model from the issue text.

Assessment

Tech stack
angularjs
Domain
frontend, security
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.