{"id":"GHSA-gwvm-vrp4-4pp5","summary":"angular-server-side-configuration information disclosure vulnerability in monorepo with node.js backend","details":"### Impact\nangular-server-side-configuration detects used environment variables in TypeScript (.ts) files during build time of an Angular CLI project. The detected environment variables are written to a ngssc.json file in the output directory.\nDuring deployment of an Angular based app, the environment variables based on the variables from ngssc.json are inserted into the apps index.html (or defined index file).\n\nWith version 15 the environment variable detection was widened to the entire project, relative to the angular.json file from the Angular CLI. In a monorepo setup, this could lead to environment variables intended for a backend/service to be detected and written to the ngssc.json, which would then be populated and exposed via index.html.\n\nThis has NO IMPACT, in a plain Angular project that has no backend component.\n\n### Patches\nVulnerability has been mitigated in 15.1.0, by adding an option `searchPattern` which restricts the detection file range by default.\n\n```bash\n# Update via npm\nnpm update angular-server-side-configuration\n## Or more specific\nnpm install angular-server-side-configuration@15.1.0\n\n# Update via pnpm\npnpm update angular-server-side-configuration\n## Or more specific\npnpm add angular-server-side-configuration@15.1.0\n\n# Update via yarn\nyarn update angular-server-side-configuration\n## Or more specific\nyarn add angular-server-side-configuration@15.1.0\n```\n\n### Workarounds\nManually edit or create ngssc.json or run a script after ngssc.json generation\n\n### References\n\n ","aliases":["CVE-2023-28444"],"modified":"2023-11-08T04:12:11.200223Z","published":"2023-03-24T22:04:35Z","database_specific":{"github_reviewed_at":"2023-03-24T22:04:35Z","github_reviewed":true,"nvd_published_at":"2023-03-24T20:15:00Z","severity":"CRITICAL","cwe_ids":["CWE-200","CWE-538"]},"references":[{"type":"WEB","url":"https://github.com/kyubisation/angular-server-side-configuration/security/advisories/GHSA-gwvm-vrp4-4pp5"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-28444"},{"type":"WEB","url":"https://github.com/kyubisation/angular-server-side-configuration/commit/d701f51260637a84ede278e248934e0437a7ff86"},{"type":"PACKAGE","url":"https://github.com/kyubisation/angular-server-side-configuration"},{"type":"WEB","url":"https://github.com/kyubisation/angular-server-side-configuration/releases/tag/v15.1.0"}],"affected":[{"package":{"name":"angular-server-side-configuration","ecosystem":"npm","purl":"pkg:npm/angular-server-side-configuration"},"ranges":[{"type":"SEMVER","events":[{"introduced":"15.0.0"},{"fixed":"15.1.0"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/03/GHSA-gwvm-vrp4-4pp5/GHSA-gwvm-vrp4-4pp5.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:L/A:L"}]}