Title: CVE-2025-30360, CVE-2025-30359 webpack-dev-server users' source code may be stolen when they access a malicious web site · Issue #30505 · angular/angular-cli · GitHub
Open Graph Title: CVE-2025-30360, CVE-2025-30359 webpack-dev-server users' source code may be stolen when they access a malicious web site · Issue #30505 · angular/angular-cli
X Title: CVE-2025-30360, CVE-2025-30359 webpack-dev-server users' source code may be stolen when they access a malicious web site · Issue #30505 · angular/angular-cli
Description: Command serve Is this a regression? Yes, this behavior used to work in the previous version The previous version in which this bug was not present was No response Description From GHSA-9jgg-88mc-972h Because the request for classic scrip...
Open Graph Description: Command serve Is this a regression? Yes, this behavior used to work in the previous version The previous version in which this bug was not present was No response Description From GHSA-9jgg-88mc-97...
X Description: Command serve Is this a regression? Yes, this behavior used to work in the previous version The previous version in which this bug was not present was No response Description From GHSA-9jgg-88mc-97...
Opengraph URL: https://github.com/angular/angular-cli/issues/30505
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"CVE-2025-30360, CVE-2025-30359 webpack-dev-server users' source code may be stolen when they access a malicious web site","articleBody":"### Command\n\nserve\n\n### Is this a regression?\n\n- [ ] Yes, this behavior used to work in the previous version\n\n### The previous version in which this bug was not present was\n\n_No response_\n\n### Description\n\nFrom https://github.com/webpack/webpack-dev-server/security/advisories/GHSA-9jgg-88mc-972h\n\nBecause the request for classic script by a script tag is not subject to same origin policy, an attacker can inject \u003cscript src=\"http://localhost:8080/main.js\"> in their site and run the script. Note that the attacker has to know the port and the output entrypoint script path. Combined with prototype pollution, the attacker can get a reference to the webpack runtime variables.\nBy using Function::toString against the values in __webpack_modules__, the attacker can get the source code.\n\n### Minimal Reproduction\n\n1. Download [reproduction.zip](https://github.com/user-attachments/files/18426585/reproduction.zip) and extract it\n2. Run npm i\n3. Run npx webpack-dev-server\n4. Open https://e29c9a88-a242-4fb4-9e64-b24c9d29b35b.pages.dev/\n5. You can see the source code output in the document and the devtools console.\n\n### Exception or Error\n\n```text\n\n```\n\n### Your Environment\n\n```text\nAngular CLI: 18.2.19\nNode: 22.14.0\nPackage Manager: npm 11.3.0\nOS: win32 x64\n\nAngular: 18.2.13\n... animations, cdk, common, compiler, compiler-cli, core, forms\n... language-service, material, platform-browser\n... platform-browser-dynamic, router\n\nPackage Version\n---------------------------------------------------------\n@angular-devkit/architect 0.1802.19\n@angular-devkit/build-angular 18.2.19\n@angular-devkit/core 18.2.19\n@angular-devkit/schematics 18.2.19\n@angular/cli 18.2.19\n@schematics/angular 18.2.19\nrxjs 7.8.1\ntypescript 5.5.4\nzone.js 0.14.10\n```\n\n### Anything else relevant?\n\n_No response_","author":{"url":"https://github.com/kmusic-synergy","@type":"Person","name":"kmusic-synergy"},"datePublished":"2025-06-10T14:29:14Z","url":"https://github.com/angular/angular-cli/issues/30505"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:c2422d5f-78d0-da9a-7862-dc92812d9ee5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A556:ADA9D:3F958F3:51763AB:6B021205 |
| html-safe-nonce | db3bc9502ab14dfc3dc77e17ee89471de478290de46b7b95160f4076eae94ecd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNTU2OkFEQTlEOjNGOTU4RjM6NTE3NjNBQjo2QjAyMTIwNSIsInZpc2l0b3JfaWQiOiI3NDM4MDMyMTM4ODk4OTAzNTU3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | efd46a2e049c46a2002b15267a4b0ef576088a98c55e7c54b1bcf8e06cfd6eee |
| hovercard-subject-tag | issue:3133826393 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular-cli/30505/issue_layout |
| twitter:image | https://opengraph.githubassets.com/484e6c2a96d1211e6e2d288365d819120af10164a35c1adcdaf61855acd57293/angular/angular-cli/issues/30505 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/484e6c2a96d1211e6e2d288365d819120af10164a35c1adcdaf61855acd57293/angular/angular-cli/issues/30505 |
| og:image:alt | Command serve Is this a regression? Yes, this behavior used to work in the previous version The previous version in which this bug was not present was No response Description From GHSA-9jgg-88mc-97... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | kmusic-synergy |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular-cli git https://github.com/angular/angular-cli.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 36891867 |
| octolytics-dimension-repository_nwo | angular/angular-cli |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 36891867 |
| octolytics-dimension-repository_network_root_nwo | angular/angular-cli |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width