Skip to main content

tanstack-query

TanStack Query simplifies asynchronous server-state management in React, offering features like caching, refetching, and pagination.

Install this skill

or
15/100

Security score

The tanstack-query skill was audited on Feb 27, 2026 and we found 25 security issues across 4 threat categories. Review the findings below before installing.

Categories Tested

Security Issues

medium line 108

Template literal with variable interpolation in command context

SourceSKILL.md
108const response = await fetch(`/api/users/${userId}`);
medium line 331

Template literal with variable interpolation in command context

SourceSKILL.md
331const response = await fetch(`/api/users/${userId}`);
medium line 356

Template literal with variable interpolation in command context

SourceSKILL.md
356axios.get(`/api/repos/${username}`, { signal }).then(res => res.data),
medium line 655

Template literal with variable interpolation in command context

SourceSKILL.md
655const response = await fetch(`/api/todos/${updatedTodo.id}`, {
medium line 751

Template literal with variable interpolation in command context

SourceSKILL.md
751const response = await fetch(`/api/posts?cursor=${pageParam}`);
medium line 794

Template literal with variable interpolation in command context

SourceSKILL.md
794const response = await fetch(`/api/posts?cursor=${pageParam}`);
medium line 1422

Template literal with variable interpolation in command context

SourceSKILL.md
1422config.headers.Authorization = `Bearer ${token}`;
medium line 1460

Template literal with variable interpolation in command context

SourceSKILL.md
1460const { data } = await apiClient.get(`/users/${id}`, { signal });
medium line 1565

Template literal with variable interpolation in command context

SourceSKILL.md
1565headers: { Authorization: `Bearer ${token}` },
medium line 1592

Template literal with variable interpolation in command context

SourceSKILL.md
1592const response = await fetch(`/api/users/${id}`);
medium line 1639

Template literal with variable interpolation in command context

SourceSKILL.md
1639const response = await fetch(`/api/users/${id}`);
medium line 1950

Template literal with variable interpolation in command context

SourceSKILL.md
1950href={`/users/${userId}`}
medium line 2064

Template literal with variable interpolation in command context

SourceSKILL.md
2064const response = await fetch(`/api/search?q=${searchTerm}`, {
medium line 2227

Template literal with variable interpolation in command context

SourceSKILL.md
2227toast.error(`Error: ${error.message}`);
medium line 2233

Template literal with variable interpolation in command context

SourceSKILL.md
2233toast.error(`Failed to save: ${error.message}`);
low line 137

Fetch to external URL

SourceSKILL.md
137const response = await fetch('/api/users', {
low line 318

Fetch to external URL

SourceSKILL.md
318const response = await fetch('/api/users');
low line 342

Fetch to external URL

SourceSKILL.md
342const response = await fetch('/api/todos', { signal });
low line 482

Fetch to external URL

SourceSKILL.md
482const response = await fetch('/api/todos', {
low line 1130

Fetch to external URL

SourceSKILL.md
1130const response = await fetch('/api/user');
low line 1564

Fetch to external URL

SourceSKILL.md
1564const response = await fetch('/api/profile', {
low line 1675

Fetch to external URL

SourceSKILL.md
1675const response = await fetch('/api/users', {
low line 1412

Access to .env file

SourceSKILL.md
1412baseURL: process.env.NEXT_PUBLIC_API_URL,
low line 1487

External URL reference

SourceSKILL.md
1487const endpoint = 'https://api.example.com/graphql';
low line 2399

External URL reference

SourceSKILL.md
2399For additional resources, visit the [official documentation](https://tanstack.com/query/latest).
Scanned on Feb 27, 2026
View Security Dashboard
Installation guide →