@qqbrowser/openclaw-qbot 0.10.8 → 0.10.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/README.md +1 -54
  2. package/dist/build-info.json +3 -3
  3. package/dist/canvas-host/a2ui/.bundle.hash +1 -1
  4. package/dist/canvas-host/a2ui/a2ui.bundle.js +12 -0
  5. package/node_modules/@aws-sdk/client-bedrock-runtime/package.json +21 -21
  6. package/node_modules/@aws-sdk/core/dist-cjs/index.js +2 -0
  7. package/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.js +3 -0
  8. package/node_modules/@aws-sdk/core/dist-es/submodules/client/setFeature.js +2 -0
  9. package/node_modules/@aws-sdk/core/package.json +6 -4
  10. package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
  11. package/node_modules/@aws-sdk/credential-provider-http/package.json +5 -5
  12. package/node_modules/@aws-sdk/credential-provider-ini/package.json +9 -9
  13. package/node_modules/@aws-sdk/credential-provider-login/package.json +3 -3
  14. package/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
  15. package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
  16. package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
  17. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
  18. package/node_modules/@aws-sdk/middleware-sdk-s3/package.json +5 -5
  19. package/node_modules/@aws-sdk/middleware-user-agent/package.json +5 -5
  20. package/node_modules/@aws-sdk/nested-clients/package.json +18 -18
  21. package/node_modules/@aws-sdk/region-config-resolver/package.json +2 -2
  22. package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +2 -2
  23. package/node_modules/@aws-sdk/token-providers/package.json +3 -3
  24. package/node_modules/@aws-sdk/util-endpoints/package.json +2 -2
  25. package/node_modules/@aws-sdk/util-user-agent-node/package.json +2 -2
  26. package/node_modules/axios/dist/axios.js +34 -11
  27. package/node_modules/axios/dist/axios.min.js +2 -2
  28. package/node_modules/axios/dist/browser/axios.cjs +32 -6
  29. package/node_modules/axios/dist/esm/axios.js +32 -6
  30. package/node_modules/axios/dist/esm/axios.min.js +2 -2
  31. package/node_modules/axios/dist/node/axios.cjs +91 -37
  32. package/node_modules/axios/index.d.cts +1 -0
  33. package/node_modules/axios/lib/adapters/http.js +69 -22
  34. package/node_modules/axios/lib/core/mergeConfig.js +13 -1
  35. package/node_modules/axios/lib/env/data.js +1 -1
  36. package/node_modules/axios/lib/helpers/resolveConfig.js +14 -2
  37. package/node_modules/axios/lib/helpers/validator.js +3 -1
  38. package/node_modules/axios/package.json +1 -1
  39. package/package.json +1 -1
@@ -10,12 +10,24 @@ import buildURL from './buildURL.js';
10
10
  export default (config) => {
11
11
  const newConfig = mergeConfig({}, config);
12
12
 
13
- let { data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth } = newConfig;
13
+ // Read only own properties to prevent prototype pollution gadgets
14
+ // (e.g. Object.prototype.baseURL = 'https://evil.com'). See GHSA-q8qp-cvcw-x6jj.
15
+ const own = (key) => (utils.hasOwnProp(newConfig, key) ? newConfig[key] : undefined);
16
+
17
+ const data = own('data');
18
+ let withXSRFToken = own('withXSRFToken');
19
+ const xsrfHeaderName = own('xsrfHeaderName');
20
+ const xsrfCookieName = own('xsrfCookieName');
21
+ let headers = own('headers');
22
+ const auth = own('auth');
23
+ const baseURL = own('baseURL');
24
+ const allowAbsoluteUrls = own('allowAbsoluteUrls');
25
+ const url = own('url');
14
26
 
15
27
  newConfig.headers = headers = AxiosHeaders.from(headers);
16
28
 
17
29
  newConfig.url = buildURL(
18
- buildFullPath(newConfig.baseURL, newConfig.url, newConfig.allowAbsoluteUrls),
30
+ buildFullPath(baseURL, url, allowAbsoluteUrls),
19
31
  config.params,
20
32
  config.paramsSerializer
21
33
  );
@@ -86,7 +86,9 @@ function assertOptions(options, schema, allowUnknown) {
86
86
  let i = keys.length;
87
87
  while (i-- > 0) {
88
88
  const opt = keys[i];
89
- const validator = schema[opt];
89
+ // Use hasOwnProperty so a polluted Object.prototype.<opt> cannot supply
90
+ // a non-function validator and cause a TypeError. See GHSA-q8qp-cvcw-x6jj.
91
+ const validator = Object.prototype.hasOwnProperty.call(schema, opt) ? schema[opt] : undefined;
90
92
  if (validator) {
91
93
  const value = options[opt];
92
94
  const result = value === undefined || validator(value, opt, options);
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "axios",
3
- "version": "1.15.1",
3
+ "version": "1.15.2",
4
4
  "description": "Promise based HTTP client for the browser and node.js",
5
5
  "main": "./dist/node/axios.cjs",
6
6
  "module": "./index.js",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qqbrowser/openclaw-qbot",
3
- "version": "0.10.8",
3
+ "version": "0.10.9",
4
4
  "description": "Multi-channel AI gateway with extensible messaging integrations",
5
5
  "keywords": [],
6
6
  "homepage": "https://github.com/openclaw/openclaw#readme",