Skip to main content

next-cache-components

Expertise in Next.js 16 caching strategies, including the use of cache directives and component-level caching for optimized performance.

Install this skill

or
0/100

Security score

The next-cache-components skill was audited on Mar 2, 2026 and we found 32 security issues across 3 threat categories. Review the findings below before installing.

Categories Tested

Security Issues

medium line 86

Template literal with variable interpolation in command context

SourceSKILL.md
86cacheTag(`user-${id}`);
medium line 88

Template literal with variable interpolation in command context

SourceSKILL.md
88const res = await fetch(`https://api.example.com/users/${id}`);
medium line 122

Template literal with variable interpolation in command context

SourceSKILL.md
122cacheTag(`user-profile-${userId}`);
medium line 124

Template literal with variable interpolation in command context

SourceSKILL.md
124const user = await fetch(`/api/users/${userId}`).then(r => r.json());
medium line 187

Template literal with variable interpolation in command context

SourceSKILL.md
187cacheTag(`blog-${slug}`);
medium line 189

Template literal with variable interpolation in command context

SourceSKILL.md
189return fetch(`/api/posts/${slug}`).then(r => r.json());
medium line 214

Template literal with variable interpolation in command context

SourceSKILL.md
214cacheTag('products', `product-${id}`);
medium line 216

Template literal with variable interpolation in command context

SourceSKILL.md
216return fetch(`/api/products/${id}`).then(r => r.json());
medium line 234

Template literal with variable interpolation in command context

SourceSKILL.md
234revalidateTag(`product-${id}`);
medium line 255

Template literal with variable interpolation in command context

SourceSKILL.md
255cacheTag('blog', `blog-${slug}`); // Specific post
medium line 257

Template literal with variable interpolation in command context

SourceSKILL.md
257cacheTag('blog', `blog-comments-${postId}`); // Post comments
medium line 263

Template literal with variable interpolation in command context

SourceSKILL.md
263revalidateTag(`blog-${slug}`);
medium line 308

Template literal with variable interpolation in command context

SourceSKILL.md
308cacheTag(`product-${productId}`);
medium line 310

Template literal with variable interpolation in command context

SourceSKILL.md
310const product = await fetch(`/api/products/${productId}`).then(r => r.json());
medium line 354

Template literal with variable interpolation in command context

SourceSKILL.md
354cacheTag('users', `user-${id}`);
medium line 415

Template literal with variable interpolation in command context

SourceSKILL.md
415cacheTag('products', `product-${id}`);
medium line 423

Template literal with variable interpolation in command context

SourceSKILL.md
423cacheTag('products', category ? `category-${category}` : 'all-products');
medium line 441

Template literal with variable interpolation in command context

SourceSKILL.md
441cacheTag(`product-${id}`);
low line 59

Fetch to external URL

SourceSKILL.md
59const data = await fetch('https://api.example.com/data');
low line 97

Fetch to external URL

SourceSKILL.md
97const res = await fetch('https://api.example.com/posts');
low line 364

Fetch to external URL

SourceSKILL.md
364const data = await fetch('https://api.example.com/data', {
low line 374

Fetch to external URL

SourceSKILL.md
374return fetch('https://api.example.com/data').then(r => r.json());
low line 59

External URL reference

SourceSKILL.md
59const data = await fetch('https://api.example.com/data');
low line 88

External URL reference

SourceSKILL.md
88const res = await fetch(`https://api.example.com/users/${id}`);
low line 97

External URL reference

SourceSKILL.md
97const res = await fetch('https://api.example.com/posts');
low line 364

External URL reference

SourceSKILL.md
364const data = await fetch('https://api.example.com/data', {
low line 374

External URL reference

SourceSKILL.md
374return fetch('https://api.example.com/data').then(r => r.json());
low line 475

External URL reference

SourceSKILL.md
475- [Next.js Caching Documentation](https://nextjs.org/docs/app/building-your-application/caching)
low line 476

External URL reference

SourceSKILL.md
476- [use cache Directive](https://nextjs.org/docs/app/api-reference/directives/use-cache)
low line 477

External URL reference

SourceSKILL.md
477- [cacheLife API](https://nextjs.org/docs/app/api-reference/functions/cacheLife)
low line 478

External URL reference

SourceSKILL.md
478- [cacheTag API](https://nextjs.org/docs/app/api-reference/functions/cacheTag)
low line 479

External URL reference

SourceSKILL.md
479- [Partial Prerendering](https://nextjs.org/docs/app/building-your-application/rendering/partial-prerendering)
Scanned on Mar 2, 2026
View Security Dashboard