{"stack":{"key":"node-express","name":"Node.js / Express","scope":"Server-side web applications and APIs written in JavaScript or TypeScript on Node.js, typically with Express or a similar HTTP framework."},"stacks":[{"key":"node-express","name":"Node.js / Express","scope":"Server-side web applications and APIs written in JavaScript or TypeScript on Node.js, typically with Express or a similar HTTP framework."}],"level":1,"item_count":33,"chapters":[{"id":"V1","name":"Encoding and Sanitization","sections":[{"id":"V1.2","name":"Injection Prevention","cheat_sheets":[{"name":"Bean Validation Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/Bean_Validation_Cheat_Sheet.html"},{"name":"Cross Site Scripting Prevention Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/Cross_Site_Scripting_Prevention_Cheat_Sheet.html"},{"name":"DOM based XSS Prevention Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/DOM_based_XSS_Prevention_Cheat_Sheet.html"},{"name":"File Upload Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/File_Upload_Cheat_Sheet.html"},{"name":"Injection Prevention Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/Injection_Prevention_Cheat_Sheet.html"},{"name":"Input Validation Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/Input_Validation_Cheat_Sheet.html"},{"name":"Java Security Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/Java_Security_Cheat_Sheet.html"},{"name":"LDAP Injection Prevention","url":"https://cheatsheetseries.owasp.org/cheatsheets/LDAP_Injection_Prevention_Cheat_Sheet.html"},{"name":"OS Command Injection Defense","url":"https://cheatsheetseries.owasp.org/cheatsheets/OS_Command_Injection_Defense_Cheat_Sheet.html"},{"name":"Query Parameterization Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/Query_Parameterization_Cheat_Sheet.html"},{"name":"SQL Injection Prevention","url":"https://cheatsheetseries.owasp.org/cheatsheets/SQL_Injection_Prevention_Cheat_Sheet.html"},{"name":"XML External Entity Prevention Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/XML_External_Entity_Prevention_Cheat_Sheet.html"},{"name":"XML Security Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/XML_Security_Cheat_Sheet.html"},{"name":"XSS Filter Evasion Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/XSS_Filter_Evasion_Cheat_Sheet.html"}],"items":[{"id":"v5.0.0-1.2.1","level":1,"requirement":"Verify that output encoding for an HTTP response, HTML document, or XML document is relevant for the context required, such as encoding the relevant characters for HTML elements, HTML attributes, HTML comments, CSS, or HTTP header fields, to avoid changing the message or document structure.","category":"build-stack","relevance":"core","applies_when":null,"note":"Use parameterised queries in the database driver or ORM; avoid passing user input to child_process calls that start a shell.","stacks":["node-express"],"by_stack":[{"stack":"node-express","category":"build-stack","relevance":"core","applies_when":null,"note":"Use parameterised queries in the database driver or ORM; avoid passing user input to child_process calls that start a shell."}],"source_url":"https://github.com/OWASP/ASVS/blob/v5.0.0_release/5.0/en/0x10-V1-Encoding-and-Sanitization.md"},{"id":"v5.0.0-1.2.2","level":1,"requirement":"Verify that when dynamically building URLs, untrusted data is encoded according to its context (e.g., URL encoding or base64url encoding for query or path parameters). Ensure that only safe URL protocols are permitted (e.g., disallow javascript: or data:).","category":"build-stack","relevance":"core","applies_when":null,"note":"Use parameterised queries in the database driver or ORM; avoid passing user input to child_process calls that start a shell.","stacks":["node-express"],"by_stack":[{"stack":"node-express","category":"build-stack","relevance":"core","applies_when":null,"note":"Use parameterised queries in the database driver or ORM; avoid passing user input to child_process calls that start a shell."}],"source_url":"https://github.com/OWASP/ASVS/blob/v5.0.0_release/5.0/en/0x10-V1-Encoding-and-Sanitization.md"},{"id":"v5.0.0-1.2.3","level":1,"requirement":"Verify that output encoding or escaping is used when dynamically building JavaScript content (including JSON), to avoid changing the message or document structure (to avoid JavaScript and JSON injection).","category":"build-stack","relevance":"core","applies_when":null,"note":"Use parameterised queries in the database driver or ORM; avoid passing user input to child_process calls that start a shell.","stacks":["node-express"],"by_stack":[{"stack":"node-express","category":"build-stack","relevance":"core","applies_when":null,"note":"Use parameterised queries in the database driver or ORM; avoid passing user input to child_process calls that start a shell."}],"source_url":"https://github.com/OWASP/ASVS/blob/v5.0.0_release/5.0/en/0x10-V1-Encoding-and-Sanitization.md"},{"id":"v5.0.0-1.2.4","level":1,"requirement":"Verify that data selection or database queries (e.g., SQL, HQL, NoSQL, Cypher) use parameterized queries, ORMs, entity frameworks, or are otherwise protected from SQL Injection and other database injection attacks. This is also relevant when writing stored procedures.","category":"build-stack","relevance":"core","applies_when":null,"note":"Use parameterised queries in the database driver or ORM; avoid passing user input to child_process calls that start a shell.","stacks":["node-express"],"by_stack":[{"stack":"node-express","category":"build-stack","relevance":"core","applies_when":null,"note":"Use parameterised queries in the database driver or ORM; avoid passing user input to child_process calls that start a shell."}],"source_url":"https://github.com/OWASP/ASVS/blob/v5.0.0_release/5.0/en/0x10-V1-Encoding-and-Sanitization.md"},{"id":"v5.0.0-1.2.5","level":1,"requirement":"Verify that the application protects against OS command injection and that operating system calls use parameterized OS queries or use contextual command line output encoding.","category":"build-stack","relevance":"core","applies_when":null,"note":"Use parameterised queries in the database driver or ORM; avoid passing user input to child_process calls that start a shell.","stacks":["node-express"],"by_stack":[{"stack":"node-express","category":"build-stack","relevance":"core","applies_when":null,"note":"Use parameterised queries in the database driver or ORM; avoid passing user input to child_process calls that start a shell."}],"source_url":"https://github.com/OWASP/ASVS/blob/v5.0.0_release/5.0/en/0x10-V1-Encoding-and-Sanitization.md"}]},{"id":"V1.3","name":"Sanitization","cheat_sheets":[{"name":"Cross Site Scripting Prevention Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/Cross_Site_Scripting_Prevention_Cheat_Sheet.html"},{"name":"Cross-Site Request Forgery Prevention Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/Cross-Site_Request_Forgery_Prevention_Cheat_Sheet.html"},{"name":"DOM based XSS Prevention Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/DOM_based_XSS_Prevention_Cheat_Sheet.html"},{"name":"Injection Prevention Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/Injection_Prevention_Cheat_Sheet.html"},{"name":"Injection Prevention Cheat Sheet in Java","url":"https://cheatsheetseries.owasp.org/cheatsheets/Injection_Prevention_in_Java_Cheat_Sheet.html"},{"name":"Input Validation Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/Input_Validation_Cheat_Sheet.html"},{"name":"LDAP Injection Prevention","url":"https://cheatsheetseries.owasp.org/cheatsheets/LDAP_Injection_Prevention_Cheat_Sheet.html"},{"name":"Server Side Request Forgery Prevention Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/Server_Side_Request_Forgery_Prevention_Cheat_Sheet.html"},{"name":"XML External Entity Prevention Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/XML_External_Entity_Prevention_Cheat_Sheet.html"}],"items":[{"id":"v5.0.0-1.3.1","level":1,"requirement":"Verify that all untrusted HTML input from WYSIWYG editors or similar is sanitized using a well-known and secure HTML sanitization library or framework feature.","category":"build-stack","relevance":"core","applies_when":null,"note":"Look for eval, new Function and template engines fed with user input, and for outbound requests to user-supplied URLs.","stacks":["node-express"],"by_stack":[{"stack":"node-express","category":"build-stack","relevance":"core","applies_when":null,"note":"Look for eval, new Function and template engines fed with user input, and for outbound requests to user-supplied URLs."}],"source_url":"https://github.com/OWASP/ASVS/blob/v5.0.0_release/5.0/en/0x10-V1-Encoding-and-Sanitization.md"},{"id":"v5.0.0-1.3.2","level":1,"requirement":"Verify that the application avoids the use of eval() or other dynamic code execution features such as Spring Expression Language (SpEL). Where there is no alternative, any user input being included must be sanitized before being executed.","category":"build-stack","relevance":"core","applies_when":null,"note":"Look for eval, new Function and template engines fed with user input, and for outbound requests to user-supplied URLs.","stacks":["node-express"],"by_stack":[{"stack":"node-express","category":"build-stack","relevance":"core","applies_when":null,"note":"Look for eval, new Function and template engines fed with user input, and for outbound requests to user-supplied URLs."}],"source_url":"https://github.com/OWASP/ASVS/blob/v5.0.0_release/5.0/en/0x10-V1-Encoding-and-Sanitization.md"}]},{"id":"V1.5","name":"Safe Deserialization","cheat_sheets":[{"name":"Deserialization Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/Deserialization_Cheat_Sheet.html"},{"name":"Server Side Request Forgery Prevention Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/Server_Side_Request_Forgery_Prevention_Cheat_Sheet.html"},{"name":"XML External Entity Prevention Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/XML_External_Entity_Prevention_Cheat_Sheet.html"},{"name":"XML Security Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/XML_Security_Cheat_Sheet.html"}],"items":[{"id":"v5.0.0-1.5.1","level":1,"requirement":"Verify that the application configures XML parsers to use a restrictive configuration and that unsafe features such as resolving external entities are disabled to prevent XML eXternal Entity (XXE) attacks.","category":"build-stack","relevance":"situational","applies_when":"The app parses XML or deserialises data from untrusted sources beyond plain JSON.","note":null,"stacks":["node-express"],"by_stack":[{"stack":"node-express","category":"build-stack","relevance":"situational","applies_when":"The app parses XML or deserialises data from untrusted sources beyond plain JSON.","note":null}],"source_url":"https://github.com/OWASP/ASVS/blob/v5.0.0_release/5.0/en/0x10-V1-Encoding-and-Sanitization.md"}]}]},{"id":"V2","name":"Validation and Business Logic","sections":[{"id":"V2.2","name":"Input Validation","cheat_sheets":[{"name":"Input Validation Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/Input_Validation_Cheat_Sheet.html"},{"name":"Microservices Security Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/Microservices_Security_Cheat_Sheet.html"},{"name":"Web Service Security Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/Web_Service_Security_Cheat_Sheet.html"}],"items":[{"id":"v5.0.0-2.2.1","level":1,"requirement":"Verify that input is validated to enforce business or functional expectations for that input. This should either use positive validation against an allow list of values, patterns, and ranges, or be based on comparing the input to an expected structure and logical limits according to predefined rules. For L1, this can focus on input which is used to make specific business or security decisions. For L2 and up, this should apply to all input.","category":"build-stack","relevance":"core","applies_when":null,"note":"Validate request bodies, query strings and headers with a schema at the route or middleware layer.","stacks":["node-express"],"by_stack":[{"stack":"node-express","category":"build-stack","relevance":"core","applies_when":null,"note":"Validate request bodies, query strings and headers with a schema at the route or middleware layer."}],"source_url":"https://github.com/OWASP/ASVS/blob/v5.0.0_release/5.0/en/0x11-V2-Validation-and-Business-Logic.md"},{"id":"v5.0.0-2.2.2","level":1,"requirement":"Verify that the application is designed to enforce input validation at a trusted service layer. While client-side validation improves usability and should be encouraged, it must not be relied upon as a security control.","category":"build-stack","relevance":"core","applies_when":null,"note":"Validate request bodies, query strings and headers with a schema at the route or middleware layer.","stacks":["node-express"],"by_stack":[{"stack":"node-express","category":"build-stack","relevance":"core","applies_when":null,"note":"Validate request bodies, query strings and headers with a schema at the route or middleware layer."}],"source_url":"https://github.com/OWASP/ASVS/blob/v5.0.0_release/5.0/en/0x11-V2-Validation-and-Business-Logic.md"}]},{"id":"V2.3","name":"Business Logic Security","cheat_sheets":[{"name":"Abuse Case Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/Abuse_Case_Cheat_Sheet.html"}],"items":[{"id":"v5.0.0-2.3.1","level":1,"requirement":"Verify that the application will only process business logic flows for the same user in the expected sequential step order and without skipping steps.","category":"build-stack","relevance":"core","applies_when":null,"note":null,"stacks":["node-express"],"by_stack":[{"stack":"node-express","category":"build-stack","relevance":"core","applies_when":null,"note":null}],"source_url":"https://github.com/OWASP/ASVS/blob/v5.0.0_release/5.0/en/0x11-V2-Validation-and-Business-Logic.md"}]}]},{"id":"V3","name":"Web Frontend Security","sections":[{"id":"V3.3","name":"Cookie Setup","cheat_sheets":[{"name":"Cross-Site Request Forgery Prevention Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/Cross-Site_Request_Forgery_Prevention_Cheat_Sheet.html"},{"name":"Session Management Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/Session_Management_Cheat_Sheet.html"},{"name":"Transport Layer Security Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/Transport_Layer_Security_Cheat_Sheet.html"}],"items":[{"id":"v5.0.0-3.3.1","level":1,"requirement":"Verify that cookies have the 'Secure' attribute set, and if the '\\__Host-' prefix is not used for the cookie name, the '__Secure-' prefix must be used for the cookie name.","category":"build-stack","relevance":"core","applies_when":null,"note":"Set cookie attributes in the session middleware and in every place that sets a cookie on the response.","stacks":["node-express"],"by_stack":[{"stack":"node-express","category":"build-stack","relevance":"core","applies_when":null,"note":"Set cookie attributes in the session middleware and in every place that sets a cookie on the response."}],"source_url":"https://github.com/OWASP/ASVS/blob/v5.0.0_release/5.0/en/0x12-V3-Web-Frontend-Security.md"}]},{"id":"V3.4","name":"Browser Security Mechanism Headers","cheat_sheets":[{"name":"Cross-Site Request Forgery Prevention Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/Cross-Site_Request_Forgery_Prevention_Cheat_Sheet.html"},{"name":"HTML5 Security Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/HTML5_Security_Cheat_Sheet.html"},{"name":"HTTP Strict Transport Security Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/HTTP_Strict_Transport_Security_Cheat_Sheet.html"}],"items":[{"id":"v5.0.0-3.4.1","level":1,"requirement":"Verify that a Strict-Transport-Security header field is included on all responses to enforce an HTTP Strict Transport Security (HSTS) policy. A maximum age of at least 1 year must be defined, and for L2 and up, the policy must apply to all subdomains as well.","category":"live-server","relevance":"core","applies_when":null,"note":"Express sends no security headers by default; add them with middleware or at the reverse proxy.","stacks":["node-express"],"by_stack":[{"stack":"node-express","category":"live-server","relevance":"core","applies_when":null,"note":"Express sends no security headers by default; add them with middleware or at the reverse proxy."}],"source_url":"https://github.com/OWASP/ASVS/blob/v5.0.0_release/5.0/en/0x12-V3-Web-Frontend-Security.md"},{"id":"v5.0.0-3.4.2","level":1,"requirement":"Verify that the Cross-Origin Resource Sharing (CORS) Access-Control-Allow-Origin header field is a fixed value by the application, or if the Origin HTTP request header field value is used, it is validated against an allowlist of trusted origins. When 'Access-Control-Allow-Origin: *' needs to be used, verify that the response does not include any sensitive information.","category":"live-server","relevance":"core","applies_when":null,"note":"Express sends no security headers by default; add them with middleware or at the reverse proxy.","stacks":["node-express"],"by_stack":[{"stack":"node-express","category":"live-server","relevance":"core","applies_when":null,"note":"Express sends no security headers by default; add them with middleware or at the reverse proxy."}],"source_url":"https://github.com/OWASP/ASVS/blob/v5.0.0_release/5.0/en/0x12-V3-Web-Frontend-Security.md"}]},{"id":"V3.5","name":"Browser Origin Separation","cheat_sheets":[{"name":"Cross-Site Request Forgery Prevention Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/Cross-Site_Request_Forgery_Prevention_Cheat_Sheet.html"},{"name":"HTML5 Security Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/HTML5_Security_Cheat_Sheet.html"},{"name":"Micro Frontend Security Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/Micro_Frontend_Security_Cheat_Sheet.html"}],"items":[{"id":"v5.0.0-3.5.1","level":1,"requirement":"Verify that, if the application does not rely on the CORS preflight mechanism to prevent disallowed cross-origin requests to use sensitive functionality, these requests are validated to ensure they originate from the application itself. This may be done by using and validating anti-forgery tokens or requiring extra HTTP header fields that are not CORS-safelisted request-header fields. This is to defend against browser-based request forgery attacks, commonly known as cross-site request forgery (CSRF).","category":"build-stack","relevance":"core","applies_when":null,"note":"Configure CORS with an explicit origin allowlist and add CSRF protection for cookie-authenticated, state-changing routes.","stacks":["node-express"],"by_stack":[{"stack":"node-express","category":"build-stack","relevance":"core","applies_when":null,"note":"Configure CORS with an explicit origin allowlist and add CSRF protection for cookie-authenticated, state-changing routes."}],"source_url":"https://github.com/OWASP/ASVS/blob/v5.0.0_release/5.0/en/0x12-V3-Web-Frontend-Security.md"},{"id":"v5.0.0-3.5.2","level":1,"requirement":"Verify that, if the application relies on the CORS preflight mechanism to prevent disallowed cross-origin use of sensitive functionality, it is not possible to call the functionality with a request which does not trigger a CORS-preflight request. This may require checking the values of the 'Origin' and 'Content-Type' request header fields or using an extra header field that is not a CORS-safelisted header-field.","category":"build-stack","relevance":"core","applies_when":null,"note":"Configure CORS with an explicit origin allowlist and add CSRF protection for cookie-authenticated, state-changing routes.","stacks":["node-express"],"by_stack":[{"stack":"node-express","category":"build-stack","relevance":"core","applies_when":null,"note":"Configure CORS with an explicit origin allowlist and add CSRF protection for cookie-authenticated, state-changing routes."}],"source_url":"https://github.com/OWASP/ASVS/blob/v5.0.0_release/5.0/en/0x12-V3-Web-Frontend-Security.md"},{"id":"v5.0.0-3.5.3","level":1,"requirement":"Verify that HTTP requests to sensitive functionality use appropriate HTTP methods such as POST, PUT, PATCH, or DELETE, and not methods defined by the HTTP specification as \"safe\" such as HEAD, OPTIONS, or GET. Alternatively, strict validation of the Sec-Fetch-* request header fields can be used to ensure that the request did not originate from an inappropriate cross-origin call, a navigation request, or a resource load (such as an image source) where this is not expected.","category":"build-stack","relevance":"core","applies_when":null,"note":"Configure CORS with an explicit origin allowlist and add CSRF protection for cookie-authenticated, state-changing routes.","stacks":["node-express"],"by_stack":[{"stack":"node-express","category":"build-stack","relevance":"core","applies_when":null,"note":"Configure CORS with an explicit origin allowlist and add CSRF protection for cookie-authenticated, state-changing routes."}],"source_url":"https://github.com/OWASP/ASVS/blob/v5.0.0_release/5.0/en/0x12-V3-Web-Frontend-Security.md"}]}]},{"id":"V4","name":"API and Web Service","sections":[{"id":"V4.1","name":"Generic Web Service Security","cheat_sheets":[{"name":"Cross-Site Request Forgery Prevention Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/Cross-Site_Request_Forgery_Prevention_Cheat_Sheet.html"},{"name":"FastAPI Security Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/FastAPI_Security_Cheat_Sheet.html"},{"name":"REST Assessment Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/REST_Assessment_Cheat_Sheet.html"},{"name":"REST Security Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/REST_Security_Cheat_Sheet.html"},{"name":"Transport Layer Security Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/Transport_Layer_Security_Cheat_Sheet.html"},{"name":"Web Service Security Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/Web_Service_Security_Cheat_Sheet.html"}],"items":[{"id":"v5.0.0-4.1.1","level":1,"requirement":"Verify that every HTTP response with a message body contains a Content-Type header field that matches the actual content of the response, including the charset parameter to specify safe character encoding (e.g., UTF-8, ISO-8859-1) according to IANA Media Types, such as \"text/\", \"/+xml\" and \"/xml\".","category":"api","relevance":"core","applies_when":null,"note":"Behind a proxy, configure Express's trust proxy setting so forwarded headers are only honoured from that proxy.","stacks":["node-express"],"by_stack":[{"stack":"node-express","category":"api","relevance":"core","applies_when":null,"note":"Behind a proxy, configure Express's trust proxy setting so forwarded headers are only honoured from that proxy."}],"source_url":"https://github.com/OWASP/ASVS/blob/v5.0.0_release/5.0/en/0x13-V4-API-and-Web-Service.md"}]},{"id":"V4.4","name":"WebSocket","cheat_sheets":[{"name":"Transport Layer Security Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/Transport_Layer_Security_Cheat_Sheet.html"},{"name":"WebSocket Security Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/WebSocket_Security_Cheat_Sheet.html"}],"items":[{"id":"v5.0.0-4.4.1","level":1,"requirement":"Verify that WebSocket over TLS (WSS) is used for all WebSocket connections.","category":"api","relevance":"situational","applies_when":"The app serves WebSocket connections.","note":null,"stacks":["node-express"],"by_stack":[{"stack":"node-express","category":"api","relevance":"situational","applies_when":"The app serves WebSocket connections.","note":null}],"source_url":"https://github.com/OWASP/ASVS/blob/v5.0.0_release/5.0/en/0x13-V4-API-and-Web-Service.md"}]}]},{"id":"V5","name":"File Handling","sections":[{"id":"V5.2","name":"File Upload and Content","cheat_sheets":[{"name":"File Upload Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/File_Upload_Cheat_Sheet.html"},{"name":"Input Validation Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/Input_Validation_Cheat_Sheet.html"}],"items":[{"id":"v5.0.0-5.2.1","level":1,"requirement":"Verify that the application will only accept files of a size which it can process without causing a loss of performance or a denial of service attack.","category":"build-stack","relevance":"situational","applies_when":"The app accepts file uploads.","note":"Set size and file-count limits in the upload middleware and check file content, not just the extension.","stacks":["node-express"],"by_stack":[{"stack":"node-express","category":"build-stack","relevance":"situational","applies_when":"The app accepts file uploads.","note":"Set size and file-count limits in the upload middleware and check file content, not just the extension."}],"source_url":"https://github.com/OWASP/ASVS/blob/v5.0.0_release/5.0/en/0x14-V5-File-Handling.md"},{"id":"v5.0.0-5.2.2","level":1,"requirement":"Verify that when the application accepts a file, either on its own or within an archive such as a zip file, it checks if the file extension matches an expected file extension and validates that the contents correspond to the type represented by the extension. This includes, but is not limited to, checking the initial 'magic bytes', performing image re-writing, and using specialized libraries for file content validation. For L1, this can focus just on files which are used to make specific business or security decisions. For L2 and up, this must apply to all files being accepted.","category":"build-stack","relevance":"situational","applies_when":"The app accepts file uploads.","note":"Set size and file-count limits in the upload middleware and check file content, not just the extension.","stacks":["node-express"],"by_stack":[{"stack":"node-express","category":"build-stack","relevance":"situational","applies_when":"The app accepts file uploads.","note":"Set size and file-count limits in the upload middleware and check file content, not just the extension."}],"source_url":"https://github.com/OWASP/ASVS/blob/v5.0.0_release/5.0/en/0x14-V5-File-Handling.md"}]},{"id":"V5.3","name":"File Storage","cheat_sheets":[{"name":"Input Validation Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/Input_Validation_Cheat_Sheet.html"},{"name":"Server Side Request Forgery Prevention Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/Server_Side_Request_Forgery_Prevention_Cheat_Sheet.html"}],"items":[{"id":"v5.0.0-5.3.1","level":1,"requirement":"Verify that files uploaded or generated by untrusted input and stored in a public folder, are not executed as server-side program code when accessed directly with an HTTP request.","category":"build-stack","relevance":"situational","applies_when":"The app stores uploaded or generated files.","note":"Build storage paths from generated names; never join user-supplied file names into a path.","stacks":["node-express"],"by_stack":[{"stack":"node-express","category":"build-stack","relevance":"situational","applies_when":"The app stores uploaded or generated files.","note":"Build storage paths from generated names; never join user-supplied file names into a path."}],"source_url":"https://github.com/OWASP/ASVS/blob/v5.0.0_release/5.0/en/0x14-V5-File-Handling.md"},{"id":"v5.0.0-5.3.2","level":1,"requirement":"Verify that when the application creates file paths for file operations, instead of user-submitted filenames, it uses internally generated or trusted data, or if user-submitted filenames or file metadata must be used, strict validation and sanitization must be applied. This is to protect against path traversal, local or remote file inclusion (LFI, RFI), and server-side request forgery (SSRF) attacks.","category":"build-stack","relevance":"situational","applies_when":"The app stores uploaded or generated files.","note":"Build storage paths from generated names; never join user-supplied file names into a path.","stacks":["node-express"],"by_stack":[{"stack":"node-express","category":"build-stack","relevance":"situational","applies_when":"The app stores uploaded or generated files.","note":"Build storage paths from generated names; never join user-supplied file names into a path."}],"source_url":"https://github.com/OWASP/ASVS/blob/v5.0.0_release/5.0/en/0x14-V5-File-Handling.md"}]}]},{"id":"V8","name":"Authorization","sections":[{"id":"V8.2","name":"General Authorization Design","cheat_sheets":[{"name":"Authorization Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/Authorization_Cheat_Sheet.html"},{"name":"Insecure Direct Object Reference Prevention Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/Insecure_Direct_Object_Reference_Prevention_Cheat_Sheet.html"},{"name":"Session Management Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/Session_Management_Cheat_Sheet.html"}],"items":[{"id":"v5.0.0-8.2.1","level":1,"requirement":"Verify that the application ensures that function-level access is restricted to consumers with explicit permissions.","category":"auth","relevance":"core","applies_when":null,"note":"Check ownership of each record looked up by an ID from the URL or body, not only that the user is logged in.","stacks":["node-express"],"by_stack":[{"stack":"node-express","category":"auth","relevance":"core","applies_when":null,"note":"Check ownership of each record looked up by an ID from the URL or body, not only that the user is logged in."}],"source_url":"https://github.com/OWASP/ASVS/blob/v5.0.0_release/5.0/en/0x17-V8-Authorization.md"},{"id":"v5.0.0-8.2.2","level":1,"requirement":"Verify that the application ensures that data-specific access is restricted to consumers with explicit permissions to specific data items to mitigate insecure direct object reference (IDOR) and broken object level authorization (BOLA).","category":"auth","relevance":"core","applies_when":null,"note":"Check ownership of each record looked up by an ID from the URL or body, not only that the user is logged in.","stacks":["node-express"],"by_stack":[{"stack":"node-express","category":"auth","relevance":"core","applies_when":null,"note":"Check ownership of each record looked up by an ID from the URL or body, not only that the user is logged in."}],"source_url":"https://github.com/OWASP/ASVS/blob/v5.0.0_release/5.0/en/0x17-V8-Authorization.md"}]},{"id":"V8.3","name":"Operation Level Authorization","cheat_sheets":[{"name":"Transaction Authorization Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/Transaction_Authorization_Cheat_Sheet.html"}],"items":[{"id":"v5.0.0-8.3.1","level":1,"requirement":"Verify that the application enforces authorization rules at a trusted service layer and doesn't rely on controls that an untrusted consumer could manipulate, such as client-side JavaScript.","category":"auth","relevance":"core","applies_when":null,"note":"Apply authorisation in route handlers or middleware on the server; never rely on checks in front-end code.","stacks":["node-express"],"by_stack":[{"stack":"node-express","category":"auth","relevance":"core","applies_when":null,"note":"Apply authorisation in route handlers or middleware on the server; never rely on checks in front-end code."}],"source_url":"https://github.com/OWASP/ASVS/blob/v5.0.0_release/5.0/en/0x17-V8-Authorization.md"}]}]},{"id":"V11","name":"Cryptography","sections":[{"id":"V11.3","name":"Encryption Algorithms","cheat_sheets":[{"name":"Cryptographic Storage Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/Cryptographic_Storage_Cheat_Sheet.html"},{"name":"Key Management Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/Key_Management_Cheat_Sheet.html"}],"items":[{"id":"v5.0.0-11.3.1","level":1,"requirement":"Verify that insecure block modes (e.g., ECB) and weak padding schemes (e.g., PKCS#1 v1.5) are not used.","category":"build-stack","relevance":"situational","applies_when":"Application code encrypts data itself.","note":null,"stacks":["node-express"],"by_stack":[{"stack":"node-express","category":"build-stack","relevance":"situational","applies_when":"Application code encrypts data itself.","note":null}],"source_url":"https://github.com/OWASP/ASVS/blob/v5.0.0_release/5.0/en/0x20-V11-Cryptography.md"},{"id":"v5.0.0-11.3.2","level":1,"requirement":"Verify that only approved ciphers and modes such as AES with GCM are used.","category":"build-stack","relevance":"situational","applies_when":"Application code encrypts data itself.","note":null,"stacks":["node-express"],"by_stack":[{"stack":"node-express","category":"build-stack","relevance":"situational","applies_when":"Application code encrypts data itself.","note":null}],"source_url":"https://github.com/OWASP/ASVS/blob/v5.0.0_release/5.0/en/0x20-V11-Cryptography.md"}]},{"id":"V11.4","name":"Hashing and Hash-based Functions","cheat_sheets":[{"name":"Password Storage Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html"}],"items":[{"id":"v5.0.0-11.4.1","level":1,"requirement":"Verify that only approved hash functions are used for general cryptographic use cases, including digital signatures, HMAC, KDF, and random bit generation. Disallowed hash functions, such as MD5, must not be used for any cryptographic purpose.","category":"build-stack","relevance":"situational","applies_when":"Application code hashes passwords or derives keys from them.","note":null,"stacks":["node-express"],"by_stack":[{"stack":"node-express","category":"build-stack","relevance":"situational","applies_when":"Application code hashes passwords or derives keys from them.","note":null}],"source_url":"https://github.com/OWASP/ASVS/blob/v5.0.0_release/5.0/en/0x20-V11-Cryptography.md"}]}]},{"id":"V13","name":"Configuration","sections":[{"id":"V13.4","name":"Unintended Information Leakage","cheat_sheets":[{"name":"Django Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/Django_Security_Cheat_Sheet.html"},{"name":"GraphQL Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/GraphQL_Cheat_Sheet.html"},{"name":"Laravel Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/Laravel_Cheat_Sheet.html"},{"name":"NPM Security best practices","url":"https://cheatsheetseries.owasp.org/cheatsheets/NPM_Security_Cheat_Sheet.html"},{"name":"Symfony Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/Symfony_Cheat_Sheet.html"}],"items":[{"id":"v5.0.0-13.4.1","level":1,"requirement":"Verify that the application is deployed either without any source control metadata, including the .git or .svn folders, or in a way that these folders are inaccessible both externally and to the application itself.","category":"live-server","relevance":"core","applies_when":null,"note":"Run with NODE_ENV set to production, which stops Express's default error handler from sending stack traces.","stacks":["node-express"],"by_stack":[{"stack":"node-express","category":"live-server","relevance":"core","applies_when":null,"note":"Run with NODE_ENV set to production, which stops Express's default error handler from sending stack traces."}],"source_url":"https://github.com/OWASP/ASVS/blob/v5.0.0_release/5.0/en/0x22-V13-Configuration.md"}]}]},{"id":"V15","name":"Secure Coding and Architecture","sections":[{"id":"V15.1","name":"Secure Coding and Architecture Documentation","cheat_sheets":[{"name":"Abuse Case Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/Abuse_Case_Cheat_Sheet.html"},{"name":"Attack Surface Analysis Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/Attack_Surface_Analysis_Cheat_Sheet.html"},{"name":"Dependency Graph & SBOM Best Practices Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/Dependency_Graph_SBOM_Cheat_Sheet.html"},{"name":"Security Terminology Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/Security_Terminology_Cheat_Sheet.html"},{"name":"Software Supply Chain Security","url":"https://cheatsheetseries.owasp.org/cheatsheets/Software_Supply_Chain_Security_Cheat_Sheet.html"},{"name":"Third Party Javascript Management Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/Third_Party_Javascript_Management_Cheat_Sheet.html"},{"name":"Threat Modeling Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/Threat_Modeling_Cheat_Sheet.html"}],"items":[{"id":"v5.0.0-15.1.1","level":1,"requirement":"Verify that application documentation defines risk based remediation time frames for 3rd party component versions with vulnerabilities and for updating libraries in general, to minimize the risk from these components.","category":"build-stack","relevance":"core","applies_when":null,"note":"The lockfile is the inventory of npm dependencies; agree how quickly vulnerable packages must be upgraded.","stacks":["node-express"],"by_stack":[{"stack":"node-express","category":"build-stack","relevance":"core","applies_when":null,"note":"The lockfile is the inventory of npm dependencies; agree how quickly vulnerable packages must be upgraded."}],"source_url":"https://github.com/OWASP/ASVS/blob/v5.0.0_release/5.0/en/0x24-V15-Secure-Coding-and-Architecture.md"}]},{"id":"V15.2","name":"Security Architecture and Dependencies","cheat_sheets":[{"name":"Software Supply Chain Security","url":"https://cheatsheetseries.owasp.org/cheatsheets/Software_Supply_Chain_Security_Cheat_Sheet.html"},{"name":"Third Party Javascript Management Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/Third_Party_Javascript_Management_Cheat_Sheet.html"},{"name":"Virtual Patching Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/Virtual_Patching_Cheat_Sheet.html"},{"name":"Vulnerable Dependency Management Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/Vulnerable_Dependency_Management_Cheat_Sheet.html"}],"items":[{"id":"v5.0.0-15.2.1","level":1,"requirement":"Verify that the application only contains components which have not breached the documented update and remediation time frames.","category":"build-stack","relevance":"core","applies_when":null,"note":"Install from a committed lockfile and keep dev dependencies, test routes and sample code out of the production build.","stacks":["node-express"],"by_stack":[{"stack":"node-express","category":"build-stack","relevance":"core","applies_when":null,"note":"Install from a committed lockfile and keep dev dependencies, test routes and sample code out of the production build."}],"source_url":"https://github.com/OWASP/ASVS/blob/v5.0.0_release/5.0/en/0x24-V15-Secure-Coding-and-Architecture.md"}]},{"id":"V15.3","name":"Defensive Coding","cheat_sheets":[{"name":"Mass Assignment Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/Mass_Assignment_Cheat_Sheet.html"},{"name":"Prototype Pollution Prevention Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/Prototype_Pollution_Prevention_Cheat_Sheet.html"},{"name":"Unvalidated Redirects and Forwards Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html"}],"items":[{"id":"v5.0.0-15.3.1","level":1,"requirement":"Verify that the application only returns the required subset of fields from a data object. For example, it should not return an entire data object, as some individual fields should not be accessible to users.","category":"build-stack","relevance":"core","applies_when":null,"note":"Watch for prototype pollution when merging request JSON into objects, and for query parsers that turn repeated keys into arrays.","stacks":["node-express"],"by_stack":[{"stack":"node-express","category":"build-stack","relevance":"core","applies_when":null,"note":"Watch for prototype pollution when merging request JSON into objects, and for query parsers that turn repeated keys into arrays."}],"source_url":"https://github.com/OWASP/ASVS/blob/v5.0.0_release/5.0/en/0x24-V15-Secure-Coding-and-Architecture.md"}]}]}],"grouping_notice":"The grouping by stack is Helm's own curation and is not endorsed by OWASP. The requirements are OWASP's, from ASVS 5.0.0.","attribution":"Requirements: OWASP Application Security Verification Standard 5.0.0, (c) OWASP Foundation, licensed under Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0), https://creativecommons.org/licenses/by-sa/4.0/. Source: https://github.com/OWASP/ASVS/tree/v5.0.0_release. The grouping by stack (Node.js / Express), the relevance labels and the notes are Helm's own editorial curation, not an OWASP product, and are not endorsed by OWASP. Cheat sheet links point to the OWASP Cheat Sheet Series (CC BY-SA 4.0). Completing a checklist means the listed controls were considered; it does not mean a system is secure.","mapping_date":"2026-11-24","sources":[{"source_name":"OWASP ASVS","source_record_id":"5.0.0","source_database":null,"source_url":"https://github.com/OWASP/ASVS/tree/v5.0.0_release","source_license":"CC-BY-SA-4.0","schema_version":"5.0.0","upstream_modified_at":"2025-05-30T09:34:29Z","fetched_at":"2026-11-24T22:53:07.225539Z"},{"source_name":"OWASP Cheat Sheet Series","source_record_id":"18e6c89f960e10a5b64f7c882c2b9dc17c423d10","source_database":null,"source_url":"https://cheatsheetseries.owasp.org/","source_license":"CC-BY-SA-4.0","schema_version":null,"upstream_modified_at":null,"fetched_at":"2026-11-24T22:53:07.225539Z"},{"source_name":"helm-curation","source_record_id":"2026-11-24","source_database":null,"source_url":null,"source_license":"CC-BY-SA-4.0","schema_version":null,"upstream_modified_at":null,"fetched_at":"2026-11-24T22:53:07.225539Z"}]}