Packages

@slack/web-api

8.4.0 · 13 Nov 2026MIT21.5M / weekRepositoryHomepagenpmAtom feed

Your version

7.9.0

20 Mar 2025Where it was published

7.19.0 is the newest release of 7.x.

In short

1 security1 new

  • Security

    web-api: Bump axios to 1.8.3 to address CVE-2025-27152

Release note

What's Changed

This release adds the allowAbsoluteUrls option to the WebClient constructor.

For code using dynamic method names with .apiCall, this will toggle if requests should be sent to absolute URLs provided:

const { WebClient } = require('@slack/web-api');

const web = new WebClient(token, {
  allowAbsoluteUrls: false, // Default: true
});

const _response = await web.apiCall('https://example.com', { /* ... */ });
$ node index.js
[DEBUG]  web-api:WebClient:0 http request url: https://slack.com/api/https://example.com
...
[WARN]  web-api:WebClient:0 http request failed An HTTP protocol error occurred: statusCode = 404

The default allowAbsoluteUrls value is true to avoid a breaking change with this update, but we suggest deciding if this option should be applied to scripts and adjacent code.

Enhancements

  • web-api: Add configs to toggle absolute url usage in dynamic api calls

Maintenance

  • Security

    web-api: Bump axios to 1.8.3 to address CVE-2025-27152

Milestone: github.com/slackapi/node-slack-sdk/milestone/131

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.