-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Description
Target SharePoint environment
SharePoint Online
What SharePoint development model, framework, SDK or API is this about?
💥 SharePoint Framework
Developer environment
None
What browser(s) / client(s) have you tested
- 💥 Internet Explorer
- 💥 Microsoft Edge
- 💥 Google Chrome
- 💥 FireFox
- 💥 Safari
- mobile (iOS/iPadOS)
- mobile (Android)
- not applicable
- other (enter in the "Additional environment details" area below)
Additional environment details
SPFx - 1.22.1
Nodejs - 22.14.0
Describe the bug / error
After scaffolding new project with SPFx 1.22.1, npm audit is reporting 3 low vulnerabilities.
GitHub advisory details:
- webpack buildHttp: allowedUris allow-list bypass via URL userinfo (@) leading to build-time SSRF behavior
- webpack buildHttp HttpUriPlugin allowedUris bypass via HTTP redirects → SSRF + cache persistence
This is a server side vulnerability which is reported as part of the SPFx project installation since project also supports hosting developer environment locally as part of developer experience. This is not a runtime SPFx issue which would be a vulnerability on customer tenant when SPFx based solutions are used by end users.
In case of SPFx - attack vector is DoS on the developer's localhost - accessible only by the developer who could requests assets from the localhost. Security issue exists when the vulnerable package is be used on Node.js server side solutions, which is not the case with SPFx when SPFx solutions are used in production.
Even though this security issue is not impacting customer SPFx solutions which are running in customer tenants, we do acknowledge the importance to avoid any confusion with these reported security issues. As part of the commitment on keep the npm audit logs clean, we are working on addressing this issue with upcoming SPFx 1.22.3 release.
As this issue is not impacting runtime environment (customers using SPFx in production), we will be providing a fix on this within upcoming week(s) and not an urgent patch immediately. We'll provide updates on this issue as comments - as needed. Currently the plan is to publish 1.22.3 on the last week of February with fixes to address these low severity vulnerabilities.
If there are any questions or comments - please add them on this issue and we'll get back to you. Thank you.
Steps to reproduce
- Install SPFx 1.22.2
- Scaffold a new project
- 3 low severity vulnerabilities reported
- Run npm audit for details on the reported issues
Expected behavior
No vulnerabilities