CVE-2023-28444
JavaScript vulnerability analysis and mitigation

Overview

CVE-2023-28444 affects angular-server-side-configuration, a package that helps configure Angular applications at runtime via environment variables. The vulnerability was discovered in versions 15.0.0 to 15.1.0 and disclosed on March 24, 2023. The issue occurs in monorepo setups where environment variables intended for backend services could be exposed through the frontend application (GitHub Advisory).

Technical details

The vulnerability stems from the package's environment variable detection mechanism. During build time, the package scans TypeScript (.ts) files for environment variables and writes them to a ngssc.json file. In version 15.0.0, the detection scope was widened to search the entire project relative to the angular.json file. This change could result in backend environment variables being detected and subsequently exposed via the application's index.html file. The vulnerability has a CVSS v3.1 score of 9.9 CRITICAL with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:L/A:L (GitHub Advisory).

Impact

The vulnerability primarily affects monorepo setups where both frontend and backend components are present. It could lead to the exposure of sensitive environment variables intended for backend services through the frontend application's index.html file. Notably, this vulnerability has no impact on plain Angular projects without backend components (NVD).

Mitigation and workarounds

The vulnerability has been patched in version 15.1.0 by introducing a 'searchPattern' option that restricts the detection file range by default to '{sourceRoot}/*/!(server*).ts'. This limits the search to the sourceRoot of the related angular.json project and excludes files with 'server' in their name. As a workaround for affected versions, users can manually edit or create ngssc.json, or run a script after ngssc.json generation (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-66456CRITICAL9.1
  • JavaScriptJavaScript
  • elysia
NoYesDec 09, 2025
CVE-2025-66457HIGH7.5
  • JavaScriptJavaScript
  • elysia
NoYesDec 09, 2025
CVE-2025-65849MEDIUM6.9
  • JavaScriptJavaScript
  • altcha
NoNoDec 08, 2025
CVE-2025-66202MEDIUM6.5
  • JavaScriptJavaScript
  • astro
NoYesDec 09, 2025
CVE-2025-66479LOW1.8
  • JavaScriptJavaScript
  • @anthropic-ai/sandbox-runtime
NoYesDec 04, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management