aws / aws/aws-cdk

various: use of deprecated url.parse

Open
#37,005 2 comments 6 reactions 0 assignees View on GitHub
@aws-cdk/cloud-assembly-schema bug effort/medium p2
Dominant language
TypeScript
Stars
12.9k
Forks
4.6k
Avg merge
2d 3h
Merged PRs (30d)
83

Description

### Describe the bug

I noticed deprecation warnings for url.parse on node 24.13.1. The warning was specifically from @aws-cdk/cloud-assembly-schema and I'm not on the latest version of that, but there's a handful of search results for url.parse in the aws-cdk github.

```
(node:1058478) [DEP0169] DeprecationWarning: `url.parse()` behavior is not standardized and prone to errors that have security implications. Use the WHATWG URL API instead. CVEs are not issued for `url.parse()` vulnerabilities.
at urlParse (node:url:136:13)
at Object.urlResolve [as resolve] (node:url:725:10)
at Validator.validate (.../@aws-cdk/cloud-assembly-schema/node_modules/jsonschema/lib/validator.js:118:21)
```

https://github.com/search?q=repo%3Aaws%2Faws-cdk%20url.parse&type=code

### Regression Issue

- [ ] Select this option if this issue appears to be a regression.

### Last Known Working CDK Library Version

_No response_

### Expected Behavior

No deprecation warnings on Current LTS node from aws-cdk-lib

### Current Behavior

deprecation warnings.

### Reproduction Steps

`cdk`

### Possible Solution

_No response_

### Additional Information/Context

_No response_

### AWS CDK Library version (aws-cdk-lib)

aws-cdk-lib@2.237.1

### AWS CDK CLI version

aws-cdk@2.1106.0

### Node.js Version

24.13.1

### OS

Ubuntu

### Language

TypeScript

### Language Version

5.9

### Other information

_No response_

Contributor guide

Open the contributing guide

Research direction

Run `cdk` with Node.js 24.13.1 to reproduce the warning, then inspect the stack entry at `@aws-cdk/cloud-assembly-schema/node_modules/jsonschema/lib/validator.js` and the repository's `url.parse` search results. Confirm which occurrences are responsible and verify that the CDK command completes without the deprecation warning.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, node.js, typescript
Domain
infrastructure, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.