Skip to content

fix: keep SSO encryption keys in create:env and make upload-api build cross-platform - #1157

Merged
vikrantraut-cstk merged 379 commits into
mainfrom
bugfix/setup-env-and-win-build
Dec 2, 2026
Merged

vikrantraut-cstk merged 379 commits into
mainfrom
bugfix/setup-env-and-win-build

Conversation

@vikrantraut-cstk

@vikrantraut-cstk vikrantraut-cstk commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

🔗 Jira Ticket

Replace with your ticket link — required before requesting review.

MIGRATION-XXXX


📋 PR Type

  • ✨ Feature
  • 🐛 Bug Fix
  • 🔥 Hotfix
  • ♻️ Refactor
  • 🧹 Chore / Dependency Update
  • 📝 Documentation

📝 Description

Fixes two setup problems a customer reported.

What changed?

  • index.js (npm run create:env) now writes MANIFEST_ENCRYPT_KEY and MANIFEST_ENCRYPT_SALT to api/production.env, using the same values build.sh uses for encryption.
  • index.js merges into existing env files instead of replacing them: the keys it manages are set, missing ones are added, and any other keys and comments stay as they are.
  • upload-api/package.json: build now runs node scripts/build-migrations.js && tsc instead of a Bash for loop.
  • upload-api/scripts/build-migrations.js (new) runs npm run build in each migration-* folder that has a package.json, on Windows (cmd/PowerShell) and in sh/bash.
  • .talismanrc: allowlists the two files above (see Reviewer Notes).

Why?

  1. SSO login fails with "Failed to process OAuth callback" / "Kindly setup the SSO first". create:env runs from both setup.sh and setup-continue.bat. It overwrote api/production.env with only APP_TOKEN_KEY and PORT, which removed the encryption key and salt. The API then couldn't decrypt the client_id/client_secret that build.sh encrypts into app.json, because crypto.utils.ts throws. This affects macOS and Windows. The customer confirmed that adding both keys back fixes it.
  2. upload-api doesn't start on Windows, so the CMS selection stays empty. npm runs scripts with cmd.exe on Windows, so the Bash loop in build failed. Since start runs build first, localhost:4002/config never came up. Moving the loop to Node fixes this for every OS without separate win* scripts or changes to setup-continue.bat.

🧩 Affected Areas

  • api — Node.js backend
  • ui — React frontend
  • upload-api — Upload API server
  • docker / docker-compose
  • CI / GitHub Actions workflows
  • Environment variables / config
  • Other: root setup script (index.js / npm run create:env)

🧪 How to Test

  1. SSO keys: run npm run create:env at the repo root. api/production.env should contain APP_TOKEN_KEY, PORT, MANIFEST_ENCRYPT_KEY and MANIFEST_ENCRYPT_SALT. Add a custom line (for example FOO=bar) to any of the three env files and run it again: that line should still be there.
  2. SSO end to end: run build.sh, then setup.sh (or setup.bat on Windows), and log in with SSO.
  3. upload-api on Windows: in cmd or PowerShell, run npm install && npm run start in upload-api. Every migration-* package should build, and http://localhost:4002/config should respond.

Expected result: SSO login succeeds after setup, and upload-api starts on Windows, macOS and Linux.


📸 Screenshots / Recordings

N/A, no UI changes.


🔗 Related PRs / Dependencies

  • None

✅ Author Checklist

  • Branch follows naming convention: feature/, bugfix/, or hotfix/ + 5–30 lowercase chars
  • Jira ticket linked above
  • Self-reviewed the diff — no debug logs, commented-out code, or TODOs left in
  • .env / example.env updated if new environment variables were added (no new variables; the keys already exist in the committed api/production.env)
  • No sensitive credentials or secrets committed (see Reviewer Notes: the key and salt were already in the repo)
  • Existing tests pass locally (npm test) (not run; no tests cover these scripts)
  • New tests written (or not applicable — explain why): tested by hand in a scratch directory, see Reviewer Notes
  • README.md / docs updated if behaviour changed
  • Talisman pre-push scan passes (no secrets flagged)

👀 Reviewer Notes

  • Hardcoded key and salt: index.js now contains MANIFEST_ENCRYPT_KEY and MANIFEST_ENCRYPT_SALT. The same values were already committed in build.sh and api/production.env, so this exposes nothing new, and both files are allowlisted in .talismanrc. With publicly known values, though, the encryption only hides the SSO credentials in app.json. A proper fix (a random key and salt per install, read by build.sh from production.env) is a separate follow-up.
  • Behaviour change: a failing migration-* package build now stops npm run build. The old loop only failed if the last package failed.
  • Testing done (macOS):
    • Env merge: no files present; the old two-key production.env; extra keys and comments; Windows line endings; duplicate keys; running it twice. On the committed production.env the output is identical except for a trailing newline.
    • Build script, with stand-in packages: runs packages in order, skips folders without a package.json, runs each build in its own folder, and stops with the right exit code when one fails.
  • Not tested: Windows, and the real migration package builds.
  • ESLint in upload-api currently crashes before checking any file (it looks like the root ajv >=8.18.0 override breaks ESLint's config loader). That problem exists without this PR, so the new script isn't linted.

aishwarya-cstk and others added 30 commits June 1, 2026 12:42
…r better handling of missing and media blocks
…aveChangesModal with async handling for step changes"

This reverts commit fe3bfed.
…iple package.json and package-lock.json files
…ng and jetpack/story support

- Added `unwrapSingleChildGroup` function to simplify processing of core/group blocks with a single inner block.
- Updated `createSchema` to utilize the new function for better handling of nested structures.
- Enhanced `schemaMapper` to support jetpack/story blocks, mapping them to a repeatable group with title, alt, caption, and image fields.
- Improved unit tests to validate new functionality for single-child groups and jetpack/story mappings.
…nfig

- Extract and map Contentful taxonomies from export; upload-api and mapper integration
- Contentful service: field/widget helpers, taxonomy metadata locale resolution (mapper + sys.locale)
- API: Vitest thresholds; migration and user unit tests (SSO, createTaxonomy mocks)
- app.json placeholder updates and related fixes
…ganization validation

- Updated saveOAuthToken to render HTML success and error pages upon OAuth token exchange.
- Introduced organization validation to ensure the correct organization is linked during authorization.
- Normalized Contentstack OAuth URLs to avoid issues with hash-style URLs.
- Added utility functions for building HTML responses and escaping text for safety.
- Enhanced the Login component to handle SSO success and error notifications.
- Added unit tests for new utility functions and updated existing tests for auth controller.
…ty tests

- Decreased the branch coverage threshold from 56 to 55 in Vitest configuration.
- Added a new test case to the contentstack-oauth-url utility to handle empty or non-string inputs correctly.
- Moved region configuration to a dedicated constants file for better organization and maintainability.
- Updated various services and components to utilize the new REGION_CONFIG, ensuring optional chaining is applied for safer access to properties.
- Corrected the spelling of 'failureNotification' in multiple locations for consistency.
- Removed unnecessary console logging in contentMapper service.
- Introduced `normalizeNicenameForUid` function to standardize taxonomy UIDs by replacing hyphens and spaces with underscores.
- Enhanced `formatChildByType` to handle child elements more robustly, ensuring correct extraction of attributes and inner blocks.
- Updated `extractItems` and `extractTaxonomy` to utilize the new normalization function for consistent taxonomy UID generation.
- Improved schema mapping for cover blocks to ensure proper handling of inner blocks and attributes.
…d a Set to track source content type UIDs for improved filtering.
- Introduced `getAxiosResponseHeader` to handle both AxiosHeaders and plain object headers, improving header value retrieval.
- Updated asset validation to utilize the new function for content-type checks, enhancing robustness in asset validation logic.
…tallations

- Updated createAppManifest to support fetching marketplace installations when the extension mapper file is missing.
- Introduced marketplaceSourceStackId parameter to allow specifying the source stack for installations.
- Added error handling for installation fetching and ensured proper writing of the app manifest.
- Enhanced unit tests to cover new functionality and edge cases related to marketplace installations.
…Stack function

- Introduced tests for the fetchMarketplaceInstallationsForStack function to validate pagination handling, error scenarios, and logging behavior.
- Ensured proper aggregation of installations based on stack UID and added fallback mechanisms for failed fetch attempts.
- Enhanced test coverage for various edge cases, including handling of non-Error exceptions.
- Replaced  with  for child block UIDs to preserve existing digit-prefixed UIDs during merging.
- Added  function to enhance matching logic by allowing fallback to title for blocks with diverged UIDs.
- Updated merging process to align UIDs and titles with the destination blocks, preventing the creation of duplicates.
- Upgraded @contentstack/cli-utilities to version 1.18.3.
- Updated @contentstack/marketplace-sdk to version 1.5.2.
- Adjusted axios version to 1.15.2 and uuid to 14.0.0.
- Added short-uuid as a new dependency.
- Updated other related dependencies for improved compatibility and performance.
- Replaced inline REGION_CONFIG object in index.ts with import from region-config.json for better maintainability.
- Updated sso.utils.js to reference the new JSON configuration.
- Removed redundant region configuration code from index.ts.
- Introduced hasMeaningfulHtmlContent function to determine if HTML contains substantive content.
- Added attachCoverBackgroundMediaToChildren and attachMediaTextFieldsToChildren functions for improved media handling in core blocks.
- Updated createSchema and schemaMapper functions to accommodate new media-text block processing.
- Refined logic in extractItems and updated MIME type handling in getMimeTypeFromExtension for better robustness.
- Upgraded @contentstack/marketplace-sdk to version 1.5.2.
- Updated axios to version 1.16.0 and follow-redirects to version 1.16.0.
- Added react-toastify for improved user notifications during SSO flow.
- Implemented toast dismissal logic to enhance user experience during SSO process.
aishwarya-cstk and others added 13 commits August 24, 2026 18:37
Delta Migration | 1.0.0 | In Drupal Assets are not getting attached to entries
usedEntryUids was reserving modelId::locale unconditionally right after
computing uid, before the later contentType/mappedLocale check decided
whether an entry would actually be produced. A file that fell into the
"no content type matched" branch (e.g. a template structure export with
no mapped content type) still consumed the key — permanently blocking a
sibling file sharing that key from producing the real entry, leaving
zero entries instead of one. That's the same "structure entry missing"
symptom QA reopened CMG-1112 for, now made deterministic by the added
sort instead of order-dependent.

Move the reservation into the success branch so a non-producing file
never blocks its sibling, while still guaranteeing at most one entry
per modelId::locale.
Reverts upload-api/src/config/index.ts and index.json to match dev
exactly. These were unrelated trailing-comma/trailing-newline diffs
that had ridden along in this branch's history, not part of the
CMG-1112 fix (flagged in PR review).
fix: stop excluding AEM structure entry from migration (CMG-1112)
… cross-platform

- create:env (index.js) now writes MANIFEST_ENCRYPT_KEY and
  MANIFEST_ENCRYPT_SALT to api/production.env. Previously it overwrote the
  file with only APP_TOKEN_KEY and PORT, so the API could not decrypt the
  SSO credentials build.sh encrypted into app.json and the OAuth callback
  failed ("Kindly setup the SSO first"). Env files are now merged: managed
  keys are set, missing ones appended, other keys and comments kept.
- upload-api build replaces the Bash for-loop with
  scripts/build-migrations.js, so npm run build/start work in cmd and
  PowerShell on Windows as well as sh/bash. A failing migration package
  build now stops the build instead of being ignored.
- .talismanrc: allowlist both files. The key/salt values were already
  committed in build.sh and api/production.env.
@vikrantraut-cstk
vikrantraut-cstk requested a review from a team as a code owner December 1, 2026 10:22
@snyk-io

snyk-io Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

✅ Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
✅ Open Source Security 0 0 0 0 0 issues
✅ Licenses 0 0 0 0 0 issues
✅ Code Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown

🔒 Security Scan Results

ℹ️ Note: Only vulnerabilities with available fixes (upgrades or patches) are counted toward thresholds.

Check Type Count (with fixes) Without fixes Threshold Result
🔴 Critical Severity 5 12 10 ✅ Passed
🟠 High Severity 46 548 25 ❌ Failed
🟡 Medium Severity 71 263 500 ✅ Passed
🔵 Low Severity 4 9 1000 ✅ Passed

⏱️ SLA Breach Summary

⚠️ Warning: The following vulnerabilities have exceeded their SLA thresholds (days since publication).

Severity Breaches (with fixes) Breaches (no fixes) SLA Threshold (with/no fixes) Status
🔴 Critical 3 8 15 / 30 days ❌ Failed / ⚠️ Warning
🟠 High 41 409 30 / 120 days ❌ Failed / ⚠️ Warning
🟡 Medium 47 1 90 / 365 days ❌ Failed / ⚠️ Warning
🔵 Low 0 0 180 / 365 days ✅ Passed

🔴 Critical Severity - SLA Breached Issues (with fixes)

Showing 3 issue(s) that have exceeded the 15-day SLA threshold:

  1. Deserialization of Untrusted Data

    • ID: SNYK-JS-REACTROUTER-17137394
    • Package: react-router@7.12.0
    • Published: 180 days ago (SLA: 15 days)
    • CVSS Score: 9.2
    • CVE: CVE-2026-42211
  2. Deserialization of Untrusted Data

    • ID: SNYK-JS-REACTROUTER-17137394
    • Package: react-router@7.12.0
    • Published: 180 days ago (SLA: 15 days)
    • CVSS Score: 9.2
    • CVE: CVE-2026-42211
  3. Resources Downloaded over Insecure Protocol

    • ID: SNYK-JS-ESBUILD-17750822
    • Package: esbuild@0.27.3
    • Published: 152 days ago (SLA: 15 days)
    • CVSS Score: 9.2

🟠 High Severity - SLA Breached Issues (with fixes)

Showing 20 issue(s) that have exceeded the 30-day SLA threshold:

  1. Server-side Request Forgery (SSRF)

    • ID: SNYK-JS-AXIOS-17111062
    • Package: axios@1.15.2
    • Published: 184 days ago (SLA: 30 days)
    • CVSS Score: 7.7
    • CVE: CVE-2026-44492
  2. Prototype Pollution

    • ID: SNYK-JS-AXIOS-17111079
    • Package: axios@1.15.2
    • Published: 184 days ago (SLA: 30 days)
    • CVSS Score: 7
    • CVE: CVE-2026-44494
  3. Prototype Pollution

    • ID: SNYK-JS-AXIOS-17111079
    • Package: axios@1.15.2
    • Published: 184 days ago (SLA: 30 days)
    • CVSS Score: 7
    • CVE: CVE-2026-44494
  4. Server-side Request Forgery (SSRF)

    • ID: SNYK-JS-AXIOS-17111062
    • Package: axios@1.15.2
    • Published: 184 days ago (SLA: 30 days)
    • CVSS Score: 7.7
    • CVE: CVE-2026-44492
  5. Allocation of Resources Without Limits or Throttling

    • ID: SNYK-JS-REACTROUTER-17138883
    • Package: react-router@7.12.0
    • Published: 180 days ago (SLA: 30 days)
    • CVSS Score: 8.7
    • CVE: CVE-2026-34077
  6. Allocation of Resources Without Limits or Throttling

    • ID: SNYK-JS-REACTROUTER-17138883
    • Package: react-router@7.12.0
    • Published: 180 days ago (SLA: 30 days)
    • CVSS Score: 8.7
    • CVE: CVE-2026-34077
  7. Open Redirect

    • ID: SNYK-JS-REACTROUTER-17138887
    • Package: react-router@7.12.0
    • Published: 180 days ago (SLA: 30 days)
    • CVSS Score: 8.7
    • CVE: CVE-2026-40181
  8. Open Redirect

    • ID: SNYK-JS-REACTROUTER-17138887
    • Package: react-router@7.12.0
    • Published: 180 days ago (SLA: 30 days)
    • CVSS Score: 8.7
    • CVE: CVE-2026-40181
  9. Allocation of Resources Without Limits or Throttling

    • ID: SNYK-JS-REACTROUTER-17138701
    • Package: react-router@7.12.0
    • Published: 180 days ago (SLA: 30 days)
    • CVSS Score: 8.7
    • CVE: CVE-2026-42342
  10. Allocation of Resources Without Limits or Throttling

  • ID: SNYK-JS-REACTROUTER-17138701
  • Package: react-router@7.12.0
  • Published: 180 days ago (SLA: 30 days)
  • CVSS Score: 8.7
  • CVE: CVE-2026-42342
  1. Insertion of Sensitive Information Into Sent Data
  • ID: SNYK-JS-AXIOS-17172681
  • Package: axios@1.15.2
  • Published: 179 days ago (SLA: 30 days)
  • CVSS Score: 8.7
  • CVE: CVE-2026-44486
  1. Insertion of Sensitive Information Into Sent Data
  • ID: SNYK-JS-AXIOS-17172681
  • Package: axios@1.15.2
  • Published: 179 days ago (SLA: 30 days)
  • CVSS Score: 8.7
  • CVE: CVE-2026-44486
  1. Uncontrolled Recursion
  • ID: SNYK-JS-MULTER-17342512
  • Package: multer@2.1.1
  • Published: 167 days ago (SLA: 30 days)
  • CVSS Score: 8.7
  • CVE: CVE-2026-5079
  1. Directory Traversal
  • ID: SNYK-JS-VITE-17353904
  • Package: vite@7.3.2
  • Published: 166 days ago (SLA: 30 days)
  • CVSS Score: 8.2
  • CVE: CVE-2026-53571
  1. Open Redirect
  • ID: SNYK-JS-REACTROUTER-18313144
  • Package: react-router@7.12.0
  • Published: 127 days ago (SLA: 30 days)
  • CVSS Score: 7.1
  • CVE: CVE-2026-53669
  1. Open Redirect
  • ID: SNYK-JS-REACTROUTER-18313144
  • Package: react-router@7.12.0
  • Published: 127 days ago (SLA: 30 days)
  • CVSS Score: 7.1
  • CVE: CVE-2026-53669
  1. Inefficient Algorithmic Complexity
  • ID: SNYK-JS-REACTROUTER-18313148
  • Package: react-router@7.12.0
  • Published: 127 days ago (SLA: 30 days)
  • CVSS Score: 8.2
  • CVE: CVE-2026-55685
  1. Inefficient Algorithmic Complexity
  • ID: SNYK-JS-REACTROUTER-18313148
  • Package: react-router@7.12.0
  • Published: 127 days ago (SLA: 30 days)
  • CVSS Score: 8.2
  • CVE: CVE-2026-55685
  1. Cross-site Scripting (XSS)
  • ID: SNYK-JS-REACTROUTER-18313128
  • Package: react-router@7.12.0
  • Published: 127 days ago (SLA: 30 days)
  • CVSS Score: 7
  • CVE: CVE-2026-53667
  1. Cross-site Scripting (XSS)
  • ID: SNYK-JS-REACTROUTER-18313128
  • Package: react-router@7.12.0
  • Published: 127 days ago (SLA: 30 days)
  • CVSS Score: 7
  • CVE: CVE-2026-53667

🟡 Medium Severity - SLA Breached Issues (with fixes)

Showing 20 issue(s) that have exceeded the 90-day SLA threshold:

  1. Regular Expression Denial of Service (ReDoS)

    • ID: SNYK-JS-SHOWDOWN-8685130
    • Package: showdown@1.9.1
    • Published: 666 days ago (SLA: 90 days)
    • CVSS Score: 6.9
    • CVE: CVE-2024-1899
  2. Improper Validation of Specified Index, Position, or Offset in Input

    • ID: SNYK-JS-UUID-16133035
    • Package: uuid@8.3.2
    • Published: 222 days ago (SLA: 90 days)
    • CVSS Score: 6.3
    • CVE: CVE-2026-41907
  3. Improper Validation of Specified Index, Position, or Offset in Input

    • ID: SNYK-JS-UUID-16133035
    • Package: uuid@8.3.2
    • Published: 222 days ago (SLA: 90 days)
    • CVSS Score: 6.3
    • CVE: CVE-2026-41907
  4. NULL Pointer Dereference

    • ID: SNYK-JS-QS-16721866
    • Package: qs@6.15.1
    • Published: 198 days ago (SLA: 90 days)
    • CVSS Score: 6.9
    • CVE: CVE-2026-8723
  5. Prototype Pollution

    • ID: SNYK-JS-AXIOS-17111081
    • Package: axios@1.15.2
    • Published: 184 days ago (SLA: 90 days)
    • CVSS Score: 6.3
    • CVE: CVE-2026-44490
  6. Prototype Pollution

    • ID: SNYK-JS-AXIOS-17111086
    • Package: axios@1.15.2
    • Published: 184 days ago (SLA: 90 days)
    • CVSS Score: 6.3
    • CVE: CVE-2026-44489
  7. Prototype Pollution

    • ID: SNYK-JS-AXIOS-17111086
    • Package: axios@1.15.2
    • Published: 184 days ago (SLA: 90 days)
    • CVSS Score: 6.3
    • CVE: CVE-2026-44489
  8. Prototype Pollution

    • ID: SNYK-JS-AXIOS-17111081
    • Package: axios@1.15.2
    • Published: 184 days ago (SLA: 90 days)
    • CVSS Score: 6.3
    • CVE: CVE-2026-44490
  9. Cross-site Scripting (XSS)

    • ID: SNYK-JS-REACTROUTER-17137545
    • Package: react-router@7.12.0
    • Published: 180 days ago (SLA: 90 days)
    • CVSS Score: 5.1
    • CVE: CVE-2026-33245
  10. Cross-site Scripting (XSS)

  • ID: SNYK-JS-REACTROUTER-17137545
  • Package: react-router@7.12.0
  • Published: 180 days ago (SLA: 90 days)
  • CVSS Score: 5.1
  • CVE: CVE-2026-33245
  1. Allocation of Resources Without Limits or Throttling
  • ID: SNYK-JS-AXIOS-17172751
  • Package: axios@1.15.2
  • Published: 179 days ago (SLA: 90 days)
  • CVSS Score: 6.9
  • CVE: CVE-2026-44488
  1. Insertion of Sensitive Information Into Sent Data
  • ID: SNYK-JS-AXIOS-17172930
  • Package: axios@1.15.2
  • Published: 179 days ago (SLA: 90 days)
  • CVSS Score: 6
  • CVE: CVE-2026-44487
  1. Regular Expression Denial of Service (ReDoS)
  • ID: SNYK-JS-AXIOS-17172532
  • Package: axios@1.15.2
  • Published: 179 days ago (SLA: 90 days)
  • CVSS Score: 6.9
  • CVE: CVE-2026-44496
  1. Regular Expression Denial of Service (ReDoS)
  • ID: SNYK-JS-AXIOS-17172532
  • Package: axios@1.15.2
  • Published: 179 days ago (SLA: 90 days)
  • CVSS Score: 6.9
  • CVE: CVE-2026-44496
  1. Allocation of Resources Without Limits or Throttling
  • ID: SNYK-JS-AXIOS-17172751
  • Package: axios@1.15.2
  • Published: 179 days ago (SLA: 90 days)
  • CVSS Score: 6.9
  • CVE: CVE-2026-44488
  1. Insertion of Sensitive Information Into Sent Data
  • ID: SNYK-JS-AXIOS-17172930
  • Package: axios@1.15.2
  • Published: 179 days ago (SLA: 90 days)
  • CVSS Score: 6
  • CVE: CVE-2026-44487
  1. Incomplete Cleanup
  • ID: SNYK-JS-MULTER-17342516
  • Package: multer@2.1.1
  • Published: 167 days ago (SLA: 90 days)
  • CVSS Score: 6.9
  • CVE: CVE-2026-5038
  1. Cross-site Scripting (XSS)
  • ID: SNYK-JS-SHOWDOWN-17874450
  • Package: showdown@1.9.1
  • Published: 147 days ago (SLA: 90 days)
  • CVSS Score: 5.3
  • CVE: CVE-2026-59710
  1. Cross-site Scripting (XSS)
  • ID: SNYK-JS-SHOWDOWN-17874448
  • Package: showdown@1.9.1
  • Published: 147 days ago (SLA: 90 days)
  • CVSS Score: 5.3
  • CVE: CVE-2026-59711
  1. Allocation of Resources Without Limits or Throttling
  • ID: SNYK-JS-AXIOS-18065353
  • Package: axios@1.15.2
  • Published: 133 days ago (SLA: 90 days)
  • CVSS Score: 6.3
  • CVE: CVE-2026-67317

ℹ️ Vulnerabilities Without Available Fixes (Informational Only)

The following vulnerabilities were detected but do not have fixes available (no upgrade or patch). These are excluded from failure thresholds:

  • Critical without fixes: 12
  • High without fixes: 548
  • Medium without fixes: 263
  • Low without fixes: 9

❌ BUILD FAILED - Security checks failed

Please review and fix the security vulnerabilities before merging.

Raises every package in the Snyk SLA report to a patched version, plus
newer advisories on the same packages that npm audit reports:

- axios ^1.20.0 (root override, ui, api, upload-api; resolves 1.21.1),
  cli-utilities axios override >=1.20.0, venus-components ^3.0.6
- react-router / react-router-dom ^7.18.7 (ui)
- vite ^7.3.8 (ui); vitest's vite now 8.4.0 (api, upload-api)
- esbuild 0.28.2 in api via tsx 4.23.15
- multer ^2.5.0 (api, upload-api)
- qs ^6.17.1 (root) and override >=6.16.1 (api, upload-api)
- uuid ^11.1.1 forced only for @contentstack/json-rte-serializer@<3 and
  @wordpress/components@<28, the two packages still on uuid 8/9
- .talismanrc: allowlist the regenerated lockfiles (integrity hashes)

showdown has no upstream fix and is no longer a dependency on dev.
mysql2 <= 3.23.0 inflates compressed MySQL protocol packets without a
size limit, so a malicious server can exhaust client memory
(GHSA-rgwj-5xj2-c3m3). Raise mysql2 to ^3.23.1 in api and upload-api
(resolves 3.26.0) and allowlist the regenerated lockfiles in .talismanrc.
@vikrantraut-cstk
vikrantraut-cstk force-pushed the bugfix/setup-env-and-win-build branch from 5b2253b to bb861f1 Compare December 1, 2026 10:54
@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown

🔒 Security Scan Results

ℹ️ Note: Only vulnerabilities with available fixes (upgrades or patches) are counted toward thresholds.

Check Type Count (with fixes) Without fixes Threshold Result
🔴 Critical Severity 5 12 10 ✅ Passed
🟠 High Severity 46 548 25 ❌ Failed
🟡 Medium Severity 71 263 500 ✅ Passed
🔵 Low Severity 4 9 1000 ✅ Passed

⏱️ SLA Breach Summary

⚠️ Warning: The following vulnerabilities have exceeded their SLA thresholds (days since publication).

Severity Breaches (with fixes) Breaches (no fixes) SLA Threshold (with/no fixes) Status
🔴 Critical 3 8 15 / 30 days ❌ Failed / ⚠️ Warning
🟠 High 41 409 30 / 120 days ❌ Failed / ⚠️ Warning
🟡 Medium 47 1 90 / 365 days ❌ Failed / ⚠️ Warning
🔵 Low 0 0 180 / 365 days ✅ Passed

🔴 Critical Severity - SLA Breached Issues (with fixes)

Showing 3 issue(s) that have exceeded the 15-day SLA threshold:

  1. Deserialization of Untrusted Data

    • ID: SNYK-JS-REACTROUTER-17137394
    • Package: react-router@7.12.0
    • Published: 180 days ago (SLA: 15 days)
    • CVSS Score: 9.2
    • CVE: CVE-2026-42211
  2. Deserialization of Untrusted Data

    • ID: SNYK-JS-REACTROUTER-17137394
    • Package: react-router@7.12.0
    • Published: 180 days ago (SLA: 15 days)
    • CVSS Score: 9.2
    • CVE: CVE-2026-42211
  3. Resources Downloaded over Insecure Protocol

    • ID: SNYK-JS-ESBUILD-17750822
    • Package: esbuild@0.27.3
    • Published: 152 days ago (SLA: 15 days)
    • CVSS Score: 9.2

🟠 High Severity - SLA Breached Issues (with fixes)

Showing 20 issue(s) that have exceeded the 30-day SLA threshold:

  1. Prototype Pollution

    • ID: SNYK-JS-AXIOS-17111079
    • Package: axios@1.15.2
    • Published: 184 days ago (SLA: 30 days)
    • CVSS Score: 7
    • CVE: CVE-2026-44494
  2. Server-side Request Forgery (SSRF)

    • ID: SNYK-JS-AXIOS-17111062
    • Package: axios@1.15.2
    • Published: 184 days ago (SLA: 30 days)
    • CVSS Score: 7.7
    • CVE: CVE-2026-44492
  3. Prototype Pollution

    • ID: SNYK-JS-AXIOS-17111079
    • Package: axios@1.15.2
    • Published: 184 days ago (SLA: 30 days)
    • CVSS Score: 7
    • CVE: CVE-2026-44494
  4. Server-side Request Forgery (SSRF)

    • ID: SNYK-JS-AXIOS-17111062
    • Package: axios@1.15.2
    • Published: 184 days ago (SLA: 30 days)
    • CVSS Score: 7.7
    • CVE: CVE-2026-44492
  5. Allocation of Resources Without Limits or Throttling

    • ID: SNYK-JS-REACTROUTER-17138701
    • Package: react-router@7.12.0
    • Published: 180 days ago (SLA: 30 days)
    • CVSS Score: 8.7
    • CVE: CVE-2026-42342
  6. Allocation of Resources Without Limits or Throttling

    • ID: SNYK-JS-REACTROUTER-17138701
    • Package: react-router@7.12.0
    • Published: 180 days ago (SLA: 30 days)
    • CVSS Score: 8.7
    • CVE: CVE-2026-42342
  7. Open Redirect

    • ID: SNYK-JS-REACTROUTER-17138887
    • Package: react-router@7.12.0
    • Published: 180 days ago (SLA: 30 days)
    • CVSS Score: 8.7
    • CVE: CVE-2026-40181
  8. Open Redirect

    • ID: SNYK-JS-REACTROUTER-17138887
    • Package: react-router@7.12.0
    • Published: 180 days ago (SLA: 30 days)
    • CVSS Score: 8.7
    • CVE: CVE-2026-40181
  9. Allocation of Resources Without Limits or Throttling

    • ID: SNYK-JS-REACTROUTER-17138883
    • Package: react-router@7.12.0
    • Published: 180 days ago (SLA: 30 days)
    • CVSS Score: 8.7
    • CVE: CVE-2026-34077
  10. Allocation of Resources Without Limits or Throttling

  • ID: SNYK-JS-REACTROUTER-17138883
  • Package: react-router@7.12.0
  • Published: 180 days ago (SLA: 30 days)
  • CVSS Score: 8.7
  • CVE: CVE-2026-34077
  1. Insertion of Sensitive Information Into Sent Data
  • ID: SNYK-JS-AXIOS-17172681
  • Package: axios@1.15.2
  • Published: 179 days ago (SLA: 30 days)
  • CVSS Score: 8.7
  • CVE: CVE-2026-44486
  1. Insertion of Sensitive Information Into Sent Data
  • ID: SNYK-JS-AXIOS-17172681
  • Package: axios@1.15.2
  • Published: 179 days ago (SLA: 30 days)
  • CVSS Score: 8.7
  • CVE: CVE-2026-44486
  1. Uncontrolled Recursion
  • ID: SNYK-JS-MULTER-17342512
  • Package: multer@2.1.1
  • Published: 168 days ago (SLA: 30 days)
  • CVSS Score: 8.7
  • CVE: CVE-2026-5079
  1. Directory Traversal
  • ID: SNYK-JS-VITE-17353904
  • Package: vite@7.3.2
  • Published: 167 days ago (SLA: 30 days)
  • CVSS Score: 8.2
  • CVE: CVE-2026-53571
  1. Inefficient Algorithmic Complexity
  • ID: SNYK-JS-REACTROUTER-18313148
  • Package: react-router@7.12.0
  • Published: 127 days ago (SLA: 30 days)
  • CVSS Score: 8.2
  • CVE: CVE-2026-55685
  1. Inefficient Algorithmic Complexity
  • ID: SNYK-JS-REACTROUTER-18313148
  • Package: react-router@7.12.0
  • Published: 127 days ago (SLA: 30 days)
  • CVSS Score: 8.2
  • CVE: CVE-2026-55685
  1. Cross-site Scripting (XSS)
  • ID: SNYK-JS-REACTROUTER-18313128
  • Package: react-router@7.12.0
  • Published: 127 days ago (SLA: 30 days)
  • CVSS Score: 7
  • CVE: CVE-2026-53667
  1. Cross-site Scripting (XSS)
  • ID: SNYK-JS-REACTROUTER-18313128
  • Package: react-router@7.12.0
  • Published: 127 days ago (SLA: 30 days)
  • CVSS Score: 7
  • CVE: CVE-2026-53667
  1. Open Redirect
  • ID: SNYK-JS-REACTROUTER-18313144
  • Package: react-router@7.12.0
  • Published: 127 days ago (SLA: 30 days)
  • CVSS Score: 7.1
  • CVE: CVE-2026-53669
  1. Open Redirect
  • ID: SNYK-JS-REACTROUTER-18313144
  • Package: react-router@7.12.0
  • Published: 127 days ago (SLA: 30 days)
  • CVSS Score: 7.1
  • CVE: CVE-2026-53669

🟡 Medium Severity - SLA Breached Issues (with fixes)

Showing 20 issue(s) that have exceeded the 90-day SLA threshold:

  1. Regular Expression Denial of Service (ReDoS)

    • ID: SNYK-JS-SHOWDOWN-8685130
    • Package: showdown@1.9.1
    • Published: 666 days ago (SLA: 90 days)
    • CVSS Score: 6.9
    • CVE: CVE-2024-1899
  2. Improper Validation of Specified Index, Position, or Offset in Input

    • ID: SNYK-JS-UUID-16133035
    • Package: uuid@8.3.2
    • Published: 222 days ago (SLA: 90 days)
    • CVSS Score: 6.3
    • CVE: CVE-2026-41907
  3. Improper Validation of Specified Index, Position, or Offset in Input

    • ID: SNYK-JS-UUID-16133035
    • Package: uuid@8.3.2
    • Published: 222 days ago (SLA: 90 days)
    • CVSS Score: 6.3
    • CVE: CVE-2026-41907
  4. NULL Pointer Dereference

    • ID: SNYK-JS-QS-16721866
    • Package: qs@6.15.1
    • Published: 198 days ago (SLA: 90 days)
    • CVSS Score: 6.9
    • CVE: CVE-2026-8723
  5. Prototype Pollution

    • ID: SNYK-JS-AXIOS-17111081
    • Package: axios@1.15.2
    • Published: 184 days ago (SLA: 90 days)
    • CVSS Score: 6.3
    • CVE: CVE-2026-44490
  6. Prototype Pollution

    • ID: SNYK-JS-AXIOS-17111086
    • Package: axios@1.15.2
    • Published: 184 days ago (SLA: 90 days)
    • CVSS Score: 6.3
    • CVE: CVE-2026-44489
  7. Prototype Pollution

    • ID: SNYK-JS-AXIOS-17111086
    • Package: axios@1.15.2
    • Published: 184 days ago (SLA: 90 days)
    • CVSS Score: 6.3
    • CVE: CVE-2026-44489
  8. Prototype Pollution

    • ID: SNYK-JS-AXIOS-17111081
    • Package: axios@1.15.2
    • Published: 184 days ago (SLA: 90 days)
    • CVSS Score: 6.3
    • CVE: CVE-2026-44490
  9. Cross-site Scripting (XSS)

    • ID: SNYK-JS-REACTROUTER-17137545
    • Package: react-router@7.12.0
    • Published: 180 days ago (SLA: 90 days)
    • CVSS Score: 5.1
    • CVE: CVE-2026-33245
  10. Cross-site Scripting (XSS)

  • ID: SNYK-JS-REACTROUTER-17137545
  • Package: react-router@7.12.0
  • Published: 180 days ago (SLA: 90 days)
  • CVSS Score: 5.1
  • CVE: CVE-2026-33245
  1. Allocation of Resources Without Limits or Throttling
  • ID: SNYK-JS-AXIOS-17172751
  • Package: axios@1.15.2
  • Published: 179 days ago (SLA: 90 days)
  • CVSS Score: 6.9
  • CVE: CVE-2026-44488
  1. Insertion of Sensitive Information Into Sent Data
  • ID: SNYK-JS-AXIOS-17172930
  • Package: axios@1.15.2
  • Published: 179 days ago (SLA: 90 days)
  • CVSS Score: 6
  • CVE: CVE-2026-44487
  1. Regular Expression Denial of Service (ReDoS)
  • ID: SNYK-JS-AXIOS-17172532
  • Package: axios@1.15.2
  • Published: 179 days ago (SLA: 90 days)
  • CVSS Score: 6.9
  • CVE: CVE-2026-44496
  1. Allocation of Resources Without Limits or Throttling
  • ID: SNYK-JS-AXIOS-17172751
  • Package: axios@1.15.2
  • Published: 179 days ago (SLA: 90 days)
  • CVSS Score: 6.9
  • CVE: CVE-2026-44488
  1. Insertion of Sensitive Information Into Sent Data
  • ID: SNYK-JS-AXIOS-17172930
  • Package: axios@1.15.2
  • Published: 179 days ago (SLA: 90 days)
  • CVSS Score: 6
  • CVE: CVE-2026-44487
  1. Regular Expression Denial of Service (ReDoS)
  • ID: SNYK-JS-AXIOS-17172532
  • Package: axios@1.15.2
  • Published: 179 days ago (SLA: 90 days)
  • CVSS Score: 6.9
  • CVE: CVE-2026-44496
  1. Incomplete Cleanup
  • ID: SNYK-JS-MULTER-17342516
  • Package: multer@2.1.1
  • Published: 168 days ago (SLA: 90 days)
  • CVSS Score: 6.9
  • CVE: CVE-2026-5038
  1. Cross-site Scripting (XSS)
  • ID: SNYK-JS-SHOWDOWN-17874450
  • Package: showdown@1.9.1
  • Published: 147 days ago (SLA: 90 days)
  • CVSS Score: 5.3
  • CVE: CVE-2026-59710
  1. Cross-site Scripting (XSS)
  • ID: SNYK-JS-SHOWDOWN-17874448
  • Package: showdown@1.9.1
  • Published: 147 days ago (SLA: 90 days)
  • CVSS Score: 5.3
  • CVE: CVE-2026-59711
  1. Uncontrolled Recursion
  • ID: SNYK-JS-AXIOS-18060730
  • Package: axios@1.15.2
  • Published: 133 days ago (SLA: 90 days)
  • CVSS Score: 6.9
  • CVE: CVE-2026-67321

ℹ️ Vulnerabilities Without Available Fixes (Informational Only)

The following vulnerabilities were detected but do not have fixes available (no upgrade or patch). These are excluded from failure thresholds:

  • Critical without fixes: 12
  • High without fixes: 548
  • Medium without fixes: 263
  • Low without fixes: 9

❌ BUILD FAILED - Security checks failed

Please review and fix the security vulnerabilities before merging.

vikrantraut-cstk and others added 3 commits December 1, 2026 16:35
The Snyk PR check failed on api/package.json for fast-uri 4.1.2
(interpretation conflict, high, fixed in 4.1.3), pulled in through
@contentstack/cli-utilities. Raise the fast-uri override from >=4.1.1 to
>=4.2.3 in the root, api and upload-api (resolves 4.2.4), which also
covers the newer fast-uri advisories fixed in 4.1.5 and 4.2.3, and
allowlist the regenerated lockfiles in .talismanrc.
@vikrantraut-cstk
vikrantraut-cstk requested a review from a team as a code owner December 1, 2026 11:08
@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown

🔒 Security Scan Results

ℹ️ Note: Only vulnerabilities with available fixes (upgrades or patches) are counted toward thresholds.

Check Type Count (with fixes) Without fixes Threshold Result
🔴 Critical Severity 0 12 10 ✅ Passed
🟠 High Severity 1 431 25 ✅ Passed
🟡 Medium Severity 3 52 500 ✅ Passed
🔵 Low Severity 0 3 1000 ✅ Passed

⏱️ SLA Breach Summary

⚠️ Warning: The following vulnerabilities have exceeded their SLA thresholds (days since publication).

Severity Breaches (with fixes) Breaches (no fixes) SLA Threshold (with/no fixes) Status
🔴 Critical 0 8 15 / 30 days ⚠️ Warning
🟠 High 0 380 30 / 120 days ⚠️ Warning
🟡 Medium 0 0 90 / 365 days ✅ Passed
🔵 Low 0 0 180 / 365 days ✅ Passed

ℹ️ Vulnerabilities Without Available Fixes (Informational Only)

The following vulnerabilities were detected but do not have fixes available (no upgrade or patch). These are excluded from failure thresholds:

  • Critical without fixes: 12
  • High without fixes: 431
  • Medium without fixes: 52
  • Low without fixes: 3

⚠️ BUILD PASSED WITH WARNINGS - SLA breaches detected for issues without available fixes

Consider reviewing these vulnerabilities when fixes become available.

@vikrantraut-cstk
vikrantraut-cstk merged commit 898dc29 into main Dec 2, 2026
10 checks passed
@vikrantraut-cstk
vikrantraut-cstk deleted the bugfix/setup-env-and-win-build branch December 2, 2026 09:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.