🛵 The stylish Node.js middleware engine for AWS Lambda 🛵
Installations
npm install @middy/http-cors
Score
99.8
Supply Chain
80.8
Quality
96.5
Maintenance
100
Vulnerability
100
License
Developer
Developer Guide
Module System
ESM
Min. Node Version
>=20
Typescript Support
Yes
Node Version
20.18.0
NPM Version
10.8.2
Statistics
3,733 Stars
2,251 Commits
377 Forks
34 Watching
9 Branches
194 Contributors
Updated on 26 Nov 2024
Bundle Size
2.76 kB
Minified
1.16 kB
Minified + Gzipped
Languages
JavaScript (88%)
TypeScript (11.49%)
CSS (0.5%)
Shell (0.02%)
Total Downloads
Cumulative downloads
Total Downloads
13,619,289
Last day
-14.4%
18,681
Compared to previous day
Last week
10.4%
104,592
Compared to previous week
Last month
9%
429,934
Compared to previous month
Last year
11.6%
4,953,233
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
1
Dev Dependencies
1
The stylish Node.js middleware engine for AWS Lambda
You can read the documentation at: https://middy.js.org
Sponsors
License
Licensed under MIT License. Copyright (c) 2017-2024 Luciano Mammino, will Farrell and the Middy team.
No vulnerabilities found.
Reason
11 commit(s) and 17 issue activity found in the last 90 days -- score normalized to 10
Reason
security policy file detected
Details
- Info: security policy file detected: SECURITY.md:1
- Info: Found linked content: SECURITY.md:1
- Info: Found disclosure, vulnerability, and/or timelines in security policy: SECURITY.md:1
- Info: Found text in security policy: SECURITY.md:1
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
SAST tool detected but not run on all commits
Details
- Info: SAST configuration detected: CodeQL
- Warn: 5 commits out of 9 are checked with a SAST tool
Reason
badge detected: Passing
Reason
Found 5/26 approved changesets -- score normalized to 1
Reason
dependency not pinned by hash detected -- score normalized to 1
Details
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/benchmarks.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/middyjs/middy/benchmarks.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/benchmarks.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/middyjs/middy/benchmarks.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/benchmarks.yml:34: update your workflow using https://app.stepsecurity.io/secureworkflow/middyjs/middy/benchmarks.yml/main?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/benchmarks.yml:39: update your workflow using https://app.stepsecurity.io/secureworkflow/middyjs/middy/benchmarks.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/lint.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/middyjs/middy/lint.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/lint.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/middyjs/middy/lint.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/middyjs/middy/release.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/middyjs/middy/release.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/sast.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/middyjs/middy/sast.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/sast.yml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/middyjs/middy/sast.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/sast.yml:34: update your workflow using https://app.stepsecurity.io/secureworkflow/middyjs/middy/sast.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/sast.yml:37: update your workflow using https://app.stepsecurity.io/secureworkflow/middyjs/middy/sast.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/middyjs/middy/tests.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/middyjs/middy/tests.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/typings.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/middyjs/middy/typings.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/typings.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/middyjs/middy/typings.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/website-publish.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/middyjs/middy/website-publish.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/website-publish.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/middyjs/middy/website-publish.yml/main?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/website-publish.yml:36: update your workflow using https://app.stepsecurity.io/secureworkflow/middyjs/middy/website-publish.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/website-test.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/middyjs/middy/website-test.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/website-test.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/middyjs/middy/website-test.yml/main?enable=pin
- Warn: npmCommand not pinned by hash: .github/workflows/benchmarks.yml:29
- Warn: npmCommand not pinned by hash: .github/workflows/lint.yml:28
- Warn: npmCommand not pinned by hash: .github/workflows/release.yml:35
- Warn: npmCommand not pinned by hash: .github/workflows/tests.yml:30
- Warn: npmCommand not pinned by hash: .github/workflows/typings.yml:29
- Info: 0 out of 19 GitHub-owned GitHubAction dependencies pinned
- Info: 0 out of 2 third-party GitHubAction dependencies pinned
- Info: 2 out of 7 npmCommand dependencies pinned
Reason
detected GitHub workflow tokens with excessive permissions
Details
- Info: jobLevel 'contents' permission set to 'read': .github/workflows/release.yml:19
- Info: jobLevel 'actions' permission set to 'read': .github/workflows/sast.yml:14
- Info: jobLevel 'contents' permission set to 'read': .github/workflows/sast.yml:15
- Warn: no topLevel permission defined: .github/workflows/benchmarks.yml:1
- Warn: no topLevel permission defined: .github/workflows/lint.yml:1
- Warn: no topLevel permission defined: .github/workflows/release.yml:1
- Warn: no topLevel permission defined: .github/workflows/sast.yml:1
- Warn: no topLevel permission defined: .github/workflows/tests.yml:1
- Warn: no topLevel permission defined: .github/workflows/typings.yml:1
- Warn: no topLevel permission defined: .github/workflows/website-publish.yml:1
- Warn: no topLevel permission defined: .github/workflows/website-test.yml:1
- Info: no jobLevel write permissions found
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
16 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275
- Warn: Project is vulnerable to: GHSA-9wv6-86v2-598j
- Warn: Project is vulnerable to: GHSA-wf5p-g6vw-rhxx
- Warn: Project is vulnerable to: GHSA-qwcr-r2fm-qrc7
- Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg
- Warn: Project is vulnerable to: GHSA-pxg6-pf52-xh8x
- Warn: Project is vulnerable to: GHSA-rv95-896h-c2vc
- Warn: Project is vulnerable to: GHSA-qw6h-vgh9-j6wx
- Warn: Project is vulnerable to: GHSA-cxjh-pqwp-8mfp
- Warn: Project is vulnerable to: GHSA-c7qv-q95q-8v27
- Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv
- Warn: Project is vulnerable to: GHSA-m6fv-jmcg-4jfg
- Warn: Project is vulnerable to: GHSA-cm22-4g7w-348p
- Warn: Project is vulnerable to: GHSA-4vvj-4cpr-p986
- Warn: Project is vulnerable to: GHSA-wr3j-pwj9-hqq6
- Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q
Score
5.4
/10
Last Scanned on 2024-11-18
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn MoreOther packages similar to @middy/http-cors
@middy/http-error-handler
Http error handler middleware for the middy framework
@middy/http-json-body-parser
Http JSON body parser middleware for the middy framework
@middy/http-header-normalizer
Http header normalizer middleware for the middy framework
@middy/http-event-normalizer
Http event normalizer middleware for the middy framework