seo-best-practices
Audited by Socket on Sep 15, 2026
5 alerts found:
Anomalyx5The code is intended to render breadcrumb navigation and Schema.org JSON-LD, not to perform malicious activity. However, the React and Laravel implementations have context-sensitive output-encoding weaknesses: untrusted breadcrumb fields can potentially break out of the JSON-LD script element, and unvalidated React href values can enable dangerous URL schemes. Treat breadcrumb data as trusted or safely serialize it for script context, escape `<` characters (for example, serialize with HTML-safe JSON), and restrict links to approved relative paths or HTTP(S) URLs. The static examples do not present a material security concern.
The fragment appears to provide legitimate JSON-LD documentation, testing utilities, and a React rendering component. It contains no evidence of malware or supply-chain sabotage. However, `dangerouslySetInnerHTML` combined with unescaped `JSON.stringify()` can permit script-tag breakout and XSS when schema data is influenced by untrusted input. The risk is conditional and should be addressed with HTML-safe JSON serialization.
The fragment is a legitimate structured-data utility with no evidence of malware or supply-chain sabotage. It has a security concern: dynamic values are inserted into an HTML script context without explicit script-safe escaping, and React uses dangerouslySetInnerHTML. Attacker-controlled content could potentially cause JSON-LD/script breakout and XSS. Review and sanitize all dynamic fields and apply HTML-safe JSON encoding before deployment.
The fragment is legitimate documentation and contains no apparent malware or supply-chain sabotage. However, the implementation examples introduce XSS risk if FAQ content is user-controlled: raw visible HTML is rendered in both Laravel and React, and JSON-LD is embedded without script-context-safe escaping. Use a robust HTML sanitizer for rich answers, escape or safely encode JSON for HTML script embedding (for example JSON_HEX_TAG|JSON_HEX_AMP|JSON_HEX_APOS|JSON_HEX_QUOT or an equivalent framework-safe mechanism), and validate or trust the FAQ source explicitly.
The fragment is benign SEO documentation and contains no evidence of malware or supply-chain sabotage. However, both dynamic examples embed serialized potentially untrusted data directly into an HTML script context. If article fields or props are attacker-controlled, a </script>-based XSS injection may be possible. The risk is implementation-dependent and should be mitigated with context-appropriate HTML-safe JSON encoding and input validation.