INFO     No vulnerabilities found!                                                                                                                                                                                                                             


                                                                                                                             Reachable Flows                                                                                                                              

Below are several data flows identified by depscan, including reachable ones. Use the tips provided to strengthen your application’s security posture.                                                                                                                    

#1 Parameter vm ↩ to the method initialize_host_defined_realm                                                                                         
╔════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗
║ Runtime/Realm.cpp#20    initialize_host_defined_realm(vm) ↩                                                                                        ║
║ ├── Runtime/Realm.cpp#22    vm.heap()                                                                                                              ║
║ └── Runtime/Realm.cpp#51    vm.push_execution_context(*new_context)                                                                                ║
║     Tags: execution, library-call                                                                                                                  ║
║                                                                                                                                                    ║
╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝

#2 Parameter vm ↩ to the method anonymous_lambda_1                                                                                                    
╔════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗
║ CyclicModule.cpp#619    anonymous_lambda_1(vm) ↩                                                                                                   ║
║ ├── CyclicModule.cpp#620    vm.argument(0)                                                                                                         ║
║ └── CyclicModule.cpp#623    async_module_execution_rejected(vm, error)                                                                             ║
║     Tags: execution, library-call                                                                                                                  ║
║                                                                                                                                                    ║
╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝

#3 Parameter max_length ↩ to the method from_base64                                                                                                   
╔════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗
║ Runtime/Uint8Array.cpp#542    from_base64(max_length) ↩                                                                                            ║
║ ├── Runtime/Uint8Array.cpp#548    max_length.value_or_lazy_evaluated([&]() {                                                                       ║
║ └── Runtime/Uint8Array.cpp#553    AK::decode_base64_into(string, output)                                                                           ║
║     Tags: decode, library-call                                                                                                                     ║
║                                                                                                                                                    ║
╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝

#4 Parameter position ↩ to the method code_point_at                                                                                                   
╔════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗
║ Runtime/StringPrototype.cpp#105    code_point_at(position) ↩                                                                                       ║
║ ├── Runtime/StringPrototype.cpp#109    position < string.length_in_code_units()                                                                    ║
║ ├── Runtime/StringPrototype.cpp#112    string.code_unit_at(position)                                                                               ║
║ ├── Runtime/StringPrototype.cpp#118    is_unicode_surrogate(first)                                                                                 ║
║ ├── Runtime/StringPrototype.cpp#124    Utf16View::is_low_surrogate(first)                                                                          ║
║ └── Runtime/StringPrototype.cpp#139    Utf16View::decode_surrogate_pair(first, second)                                                             ║
║     Tags: decode, library-call                                                                                                                     ║
║                                                                                                                                                    ║
╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝

#5 Parameter realm ↩ to the method create                                                                                                             
╔════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗
║ Runtime/AsyncFunctionDriverWrapper.cpp#20    create(realm) ↩                                                                                       ║
║ ├── Runtime/AsyncFunctionDriverWrapper.cpp#22    Promise::create(realm)                                                                            ║
║ ├── Runtime/AsyncFunctionDriverWrapper.cpp#24    realm.create                                                                                      ║
║ └── Runtime/AsyncFunctionDriverWrapper.cpp#27    wrapper->continue_async_execution(realm.vm(), js_undefined(), true)                               ║
║     Tags: execution, library-call                                                                                                                  ║
║                                                                                                                                                    ║
╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝

#6 Parameter this_argument ↩ to the method internal_call                                                                                              
╔════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗
║ Runtime/NativeFunction.cpp#113    internal_call(this_argument) ↩                                                                                   ║
║ ├── Runtime/NativeFunction.cpp#145    callee_context.this_value = this_argument                                                                    ║
║ └── Runtime/NativeFunction.cpp#159    vm.push_execution_context(callee_context, {})                                                                ║
║     Tags: execution, library-call                                                                                                                  ║
║                                                                                                                                                    ║
╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝

#7 Parameter max_length ↩ to the method from_base64                                                                                                   
╔════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗
║ Runtime/Uint8Array.cpp#542    from_base64(max_length) ↩                                                                                            ║
║ ├── Runtime/Uint8Array.cpp#548    max_length.value_or_lazy_evaluated([&]() {                                                                       ║
║ └── Runtime/Uint8Array.cpp#553    AK::decode_base64_into(string, output)                                                                           ║
║     Tags: decode, library-call                                                                                                                     ║
║                                                                                                                                                    ║
╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝

#8 Parameter new_target ↩ to the method construct                                                                                                     
╔════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗
║ Runtime/ShadowRealmConstructor.cpp#43    construct(new_target) ↩                                                                                   ║
║ ├── Runtime/ShadowRealmConstructor.cpp#48    vm, new_target, &Intrinsics::shadow_realm_prototype                                                   ║
║ ├── Runtime/ShadowRealmConstructor.cpp#53    Realm::initialize_host_defined_realm(vm, nullptr, nullptr)                                            ║
║ └── Runtime/ShadowRealmConstructor.cpp#56    vm.pop_execution_context()                                                                            ║
║     Tags: execution, library-call                                                                                                                  ║
║                                                                                                                                                    ║
╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝

#9 Parameter source_text ↩ to the method parse_json_module                                                                                            
╔════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗
║ SyntheticModule.cpp#54    parse_json_module(source_text) ↩                                                                                         ║
║ └── SyntheticModule.cpp#59    JSONObject::parse_json(vm, source_text)                                                                              ║
║     Tags: json, library-call                                                                                                                       ║
║                                                                                                                                                    ║
╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝

#10 Parameter string ↩ to the method from_base64                                                                                                      
╔════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗
║ Runtime/Uint8Array.cpp#542    from_base64(string) ↩                                                                                                ║
║ └── Runtime/Uint8Array.cpp#554    AK::decode_base64url_into(string, output)                                                                        ║
║     Tags: decode, library-call                                                                                                                     ║
║                                                                                                                                                    ║
╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝

#11 Parameter function ↩ to the method prepare_for_wrapped_function_call                                                                              
╔════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗
║ Runtime/WrappedFunction.cpp#139    prepare_for_wrapped_function_call(function) ↩                                                                   ║
║ ├── Runtime/WrappedFunction.cpp#141    function.vm()                                                                                               ║
║ └── Runtime/WrappedFunction.cpp#144    vm.running_execution_context()                                                                              ║
║     Tags: execution, library-call                                                                                                                  ║
║                                                                                                                                                    ║
╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝

#12 Parameter realm ↩ to the method create                                                                                                            
╔════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗
║ Runtime/AsyncFunctionDriverWrapper.cpp#20    create(realm) ↩                                                                                       ║
║ ├── Runtime/AsyncFunctionDriverWrapper.cpp#22    Promise::create(realm)                                                                            ║
║ ├── Runtime/AsyncFunctionDriverWrapper.cpp#24    realm.create                                                                                      ║
║ └── Runtime/AsyncFunctionDriverWrapper.cpp#27    wrapper->continue_async_execution(realm.vm(), js_undefined(), true)                               ║
║     Tags: execution, library-call                                                                                                                  ║
║                                                                                                                                                    ║
╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝

#13 Parameter string ↩ to the method code_point_at                                                                                                    
╔════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗
║ Runtime/StringPrototype.cpp#105    code_point_at(string) ↩                                                                                         ║
║ ├── Runtime/StringPrototype.cpp#109    string.length_in_code_units()                                                                               ║
║ ├── Runtime/StringPrototype.cpp#112    string.code_unit_at(position)                                                                               ║
║ ├── Runtime/StringPrototype.cpp#118    is_unicode_surrogate(first)                                                                                 ║
║ ├── Runtime/StringPrototype.cpp#124    Utf16View::is_low_surrogate(first)                                                                          ║
║ └── Runtime/StringPrototype.cpp#139    Utf16View::decode_surrogate_pair(first, second)                                                             ║
║     Tags: decode, library-call                                                                                                                     ║
║                                                                                                                                                    ║
╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝

#14 Parameter callee_context ↩ to the method internal_call                                                                                            
╔════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗
║ Runtime/NativeFunction.cpp#113    internal_call(callee_context) ↩                                                                                  ║
║ └── Runtime/NativeFunction.cpp#159    vm.push_execution_context(callee_context, {})                                                                ║
║     Tags: execution, library-call                                                                                                                  ║
║                                                                                                                                                    ║
╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝

#15 Parameter function ↩ to the method prepare_for_wrapped_function_call                                                                              
╔════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗
║ Runtime/WrappedFunction.cpp#139    prepare_for_wrapped_function_call(function) ↩                                                                   ║
║ ├── Runtime/WrappedFunction.cpp#141    function.vm()                                                                                               ║
║ ├── Runtime/WrappedFunction.cpp#156    function.realm()                                                                                            ║
║ ├── Runtime/WrappedFunction.cpp#159    callee_context.realm = callee_realm                                                                         ║
║ └── Runtime/WrappedFunction.cpp#169    vm.push_execution_context(callee_context)                                                                   ║
║     Tags: execution, library-call                                                                                                                  ║
║                                                                                                                                                    ║
╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝

#16 Parameter string ↩ to the method from_base64                                                                                                      
╔════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗
║ Runtime/Uint8Array.cpp#542    from_base64(string) ↩                                                                                                ║
║ └── Runtime/Uint8Array.cpp#553    AK::decode_base64_into(string, output)                                                                           ║
║     Tags: decode, library-call                                                                                                                     ║
║                                                                                                                                                    ║
╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝

#17 Parameter callee_context ↩ to the method internal_call                                                                                            
╔════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗
║ Runtime/NativeFunction.cpp#113    internal_call(callee_context) ↩                                                                                  ║
║ └── Runtime/NativeFunction.cpp#159    vm.push_execution_context(callee_context, {})                                                                ║
║     Tags: execution, library-call                                                                                                                  ║
║                                                                                                                                                    ║
╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝

#18 Parameter this_argument ↩ to the method internal_call                                                                                             
╔════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗
║ Runtime/NativeFunction.cpp#113    internal_call(this_argument) ↩                                                                                   ║
║ ├── Runtime/NativeFunction.cpp#145    callee_context.this_value = this_argument                                                                    ║
║ ├── Runtime/NativeFunction.cpp#159    vm.push_execution_context(callee_context, {})                                                                ║
║ Tags: execution, library-call                                                                                                                  ║
║                                                                                                                                                ║
║ └── Runtime/NativeFunction.cpp#165    vm.pop_execution_context()                                                                                   ║
║     Tags: execution, library-call                                                                                                                  ║
║                                                                                                                                                    ║
╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝

#19 Parameter position ↩ to the method code_point_at                                                                                                  
╔════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗
║ Runtime/StringPrototype.cpp#105    code_point_at(position) ↩                                                                                       ║
║ ├── Runtime/StringPrototype.cpp#109    position < string.length_in_code_units()                                                                    ║
║ ├── Runtime/StringPrototype.cpp#112    string.code_unit_at(position)                                                                               ║
║ ├── Runtime/StringPrototype.cpp#130    position + 1                                                                                                ║
║ ├── Runtime/StringPrototype.cpp#133    Utf16View::is_low_surrogate(second)                                                                         ║
║ └── Runtime/StringPrototype.cpp#139    Utf16View::decode_surrogate_pair(first, second)                                                             ║
║     Tags: decode, library-call                                                                                                                     ║
║                                                                                                                                                    ║
╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝

#20 Parameter error ↩ to the method async_module_execution_rejected                                                                                   
╔════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗
║ CyclicModule.cpp#769    async_module_execution_rejected(error) ↩                                                                                   ║
║ ├── CyclicModule.cpp#790    throw_completion(error)                                                                                                ║
║ └── CyclicModule.cpp#798    module->async_module_execution_rejected(vm, error)                                                                     ║
║     Tags: execution, library-call                                                                                                                  ║
║                                                                                                                                                    ║
╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝

                                                                                                                            Secure Design Tips                                                                                                                            

Enhance your unit and integration tests to cover the flows listed above.                                                                                                                                                                                               
Continuously fuzz the parser and validation functions with diverse payloads.