swagger-api / swagger-api/swagger-codegen
CVE-2022-25844 (High) detected in angular-1.7.5.tgz
Nobody has claimed this yet.
- 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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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